I've searched here and on the 'net for examples of a script or command line function that will remove the $ character from all file names only that can be done within the directory that contains the file names - which are all html files.
ie, I have a directory that contains html files and some of those have file names containing the $ character which I would like to have removed. As there is in excess of 1000 files in the directory, it's not a process I'd want to do manually!
!#/bin/ksh
for file in `ls -1 *\$*` # Note ls -1(one) and not the alphabet L
do
NEW_FILE=$(echo "$file" | sed 's/\$//g')
mv "$file" "$NEW_FILE"
echo "Moved file: $file"
done