david bolt bgbricpzdavjamorg wed 13 feb 2008 david c rankin wrote listmates run bash problem simple loop dont understand would like input gurus determine tldp documentation error safe money says situation ill give three guesses one 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 oh oh theres error guessed quotes around list shouldnt using html files one directories example esnuefadderpublic_html ls htm indexhtm pics1htm spam3dayshtm spams7dayhtm spamstatshtm pichtm rsyncexamplehtm spams3dayhtm spams_per_dayhtm youhtm shows files reference esnuefadderpublic_html listls htm thats first line script esnuefadderpublic_html echo list indexhtm pichtm pics1htm rsyncexamplehtm spam3dayshtm spams3dayhtm spams7dayhtm spams_per_dayhtm spamstatshtm youhtm contents list esnuefadderpublic_html list echo done indexhtm pichtm pics1htm rsyncexamplehtm spam3dayshtm spams3dayhtm spams7dayhtm spams_per_dayhtm spamstatshtm youhtm ive passed list loop body prints contents adds quotes around see passed see doublequote beginning first line closing quotes end last line says everything quotes assigned one go correctly guessed quotes around list shouldnt removing gets output instead esnuefadderpublic_html list echo done indexhtm pichtm pics1htm rsyncexamplehtm spam3dayshtm spams3dayhtm spams7dayhtm spams_per_dayhtm spamstatshtm youhtm understand enough realize quotes affect bash expansion curious whether tldp example error says brain trust yes theres error tldp example regards david bolt team acorn httpwwwdistributednet ogrp2 100mnodes rc572 15mkeys suse 101 32bit opensuse 102 32bit opensuse 103 32bit opensuse 110a1 suse 101 64bit opensuse 102 64bit opensuse 103 64bit risc os 36 tos 402 opensuse 103 ppc risc os 311 wed 06 aug 2008 004603 0000 opensuse bash doesnt tldp bash beginners guide loop example work