[Gllug] looping through files
dudes dudes
akam123 at hotmail.co.uk
Tue Sep 27 13:24:20 UTC 2011
thanks Victor, it worked :)
> From: vchurchill at softwareshack.eu
> Date: Tue, 27 Sep 2011 14:20:56 +0100
> To: gllug at gllug.org.uk
> Subject: Re: [Gllug] looping through files
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20110927/5b24c138/attachment.html>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list