bash script does nothing....
this script does nothing... is my sentax wrong for executing this line of code in every file in the current directory? when i run the iconv line of code by itself from the command line for one file it works fine.
the script and files are in the same directory and i call it by typing:
./conversion_script.sh
# what gives? thanx in advance! it gives no errors.
# i have writes to execute this,
# and i ran: mv file.txt file.bak; tr -d '\r' < file.bak > file.txt
# where file.txt was replaced with conversion_script.sh
#!/bin/bash
for filename in "$@";
do
iconv -f utf-16 -t utf-8 "$filename" > $filename-new
done
|