On Sat, 19 Jan 2013 10:48:49 -0700, Jurai <Jurai@WhereTheHellAmI.???>
wrote:
> Hi. Could someone show me how to perform the equivalent of the
> following Windows shell command ->
> for /R %b in (*) do chdman copy -i %~pnxb -o \temp%~pnb
> <- under bash?
Not knowing what chdman does, no. It's not a Windows cmd shell
command that I know of.
See below for the basic for loop in bash, though.
> Basically I need the bash equivalent of the
> Windows 'for' command. TIA.
That is easy:
http://www.gnu.org/software/bash/manual/bashref.html#Looping-Constructs
eg:
for ITEM in # An expression giving a list;
do
# Something
# Eg:
echo "This is item: $ITEM"
done
--
=========================================================
Please always reply to ng as the email in this post's
header does not exist. Or use a contact address at:
http://www.macfh.co.uk/JavaJive/JavaJive.html
http://www.macfh.co.uk/Macfarlane/Macfarlane.html