> ./rename2.sh: line 27: unexpected EOF while looking for matching `"' > if [ "$#' -eq 0 ]; then Make that "$#". Try turning on syntax highlighting in vim, it shows up this sort of thing straight away. :) > for FILE in 'find $DIR -print'; Won't work as expected (from your shell, try it: for file in `find $DIR -print`; do echo $file; done), this works though: find $DIR -type f -print | while read FILE; > echo $FILE > tr ' ' '_' > $NEWFILE Won't work as expected, try: NEWFILE=`echo $FILE | tr ' ' '_'`; > mv $FILE $NEWFILE You'll need to make that "$FILE", and ahh, hope you have no malicious users. :) -- adm -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://slug.org.au/lists/listinfo/slug
