david c rankin vhdicqcdjjosuddenlinkmailcom anders johansson wrote thursday 14 february 2008 054123 david c rankin wrote listmates run bash problem simple loop dont understand would like input gurus determine tldp documentation error safe money says situation using example 9122 following link construct simple loop extract directory full zip files httptldporgldpbashbeginnersguidehtmlsect_09_01html example give nezyqoctarine html cat html2phpsh binbash specific conversion script html files php listls html list newnamels sed e shtmlphp cat beginfile newname cat sed e 125d tac sed e 121d tac newname cat endfile newname done actually tutorial wow newnameihtmlphp echo beginfile newname sed e 125d created following binbash listls zip list unzip mntnemesiscfghomesambacomputersoftwarefontsextract echo unzipped extract done exit 0 zip unzip mntnemesiscfghomesambacomputersoftwarefontsextract done want quotes around guard spaces file names anders anders found quotes around work managing filenames spaces filenames spaces pulled listls zip quoted unquoted makes difference next element list example goodfile 001jpg exists list goodfile 001jpg list echo 1 done gives goodfile 001jpg regardless stumbling around seems include afsn keep loop breaking spaces specifying break newlines spaces filenames spaces wifes digital pictures thing found work without extensive character replacing spaces _ afsn list telling loop break spaces afs seems work like charm better ways echo 1 done david c rankin jd pe rankin law firm pllc 510 ochiltree street nacogdoches texas 75961 telephone 936 7159333 facsimile 936 7159339 wwwrankinlawfirmcom tue 05 aug 2008 221850 0600 opensuse bash doesnt tldp bash beginners guide loop example work