: }I am trying to find a way to add strings to ls's output in order
: }to create a script file to be used with bash. My trusty old Amiga
: }would do this handily with an lformat option using list. What would
: }this accomplish ?
: }
: }For starters it would allow you to perform a function on every
: }file in a particular directory.
: }
: }I'm hoping that this can be accomplished handily from within a
: }shell environment.
: }
: }ADV thanks ANCE...
: If i understand you, you want to do something to every file in a directory
: so in your script
: ls > /tmp/myfile
: for i in `cat /tmp/myfile`
: do
: commad you want to do
: done
no need to create an intermediate file and do a UUOC:
-----------------------------------
for i in `ls`
do
commad you want to do
done
--
Tad McClellan, Logistics Specialist (IETMs and SGML guy)
All I want, is a little more than I'll ever get.