[Gllug] looping through files

Victor Churchill vchurchill at softwareshack.eu
Tue Sep 27 13:20:56 UTC 2011


On 27 September 2011 13:35, dudes dudes <akam123 at hotmail.co.uk> wrote:

> Say under /test directory I have file1, file2 to file(n+1). Is it possible
> in "bash" to open each file one after another and do some changes ?
>

cd /test
for FILE in * ; do
echo doing something with $FILE..
rm $FILE
done

-- 
regards,

Victor Churchill
The Software Shack, Ltd
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list