Something along this line should suffice..
#!/bin/sh
for file in $HOME/*; do echo $file; done
'man for' should take you there.
--SH
-Original Message-
From: Lloyd Bayley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 13 August 2002 11:21 AM
To: [EMAIL PROTECTED]
Subject: [SLUG] Looping
On Tue, Aug 13, 2002 at 11:26:25AM +1000, Hartono, Susanto wrote:
Something along this line should suffice..
#!/bin/sh
for file in $HOME/*; do echo $file; done
That'll only work on non-hidden files, unless the shell option dotglob
is set (shopt -s dotglob, off by default). If you want all
On Tue, Aug 13, 2002 at 11:34:23AM +1000, John Clarke wrote:
On Tue, Aug 13, 2002 at 11:26:25AM +1000, Hartono, Susanto wrote:
Something along this line should suffice..
#!/bin/sh
for file in $HOME/*; do echo $file; done
That'll only work on non-hidden files, unless the shell
, 13 August 2002 12:22 PM
To: [EMAIL PROTECTED]
Subject: Re: [SLUG] Looping Through File Lists
On Tue, Aug 13, 2002 at 11:34:23AM +1000, John Clarke wrote:
On Tue, Aug 13, 2002 at 11:26:25AM +1000, Hartono, Susanto wrote:
Something along this line should suffice..
#!/bin/sh
for file
On Tue, 2002-08-13 at 13:32, Visser, Martin (Sydney) wrote:
find has the built in ability to execute commands on each found file, avoiding any
shell globbing or scaling issue.
find ./ -type -maxdepth 1 -exec convertfile {} \;
The {} matches the file name, and \; delineates the command to