On 7/28/10 7:06 AM, Jordon Bedwell wrote:

#!/bin/sh
for MAGFILE in $(ls *\.[zZ][iI][pP])
do
echo "File: $MAGFILE";
done

I would prefer to rely on $() before `` in a bash script.


Sorry, I did that script on OS X, you should switch the SH shebang to Bash, it's just aliased on OS X but not on Debian, but in your case it probably won't matter that much since you aren't doing anything but a for loop so far that I can see.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c501db6.5000...@envygeeks.com

Reply via email to