On Mon, 26 Mar 2007, at 5:52pm, Robin Doer wrote to [EMAIL PROTECTED]:
Karthik Vishwanath schrieb:
#!/bin/bash
# set_idv3_tags.sh
IFS=\n # Not tested!!!
Tried all variants:
IFS=\n
IFS="\n"
IFS='\n'
IFS='
'
They don't work.
for directory in "$@"; do
if [[ -d "$directory" ]]; then
for f in `find $directory -iname '*mp3' `; do
echo "found mp3 file: $f"
done
fi
done
Bash uses the IFS variable for word splitting. (man bash)
HTH,
Robin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs