Bash Script for eenaming Multiple files

view full story

http://www.linuxquestions.org – G'day I am trying to get a script working that will copy existing files (most do no have an extension) to another folder and append all files with the extension .txt I have the cp command down pat (cp /existing_folder /new_folder) however I am stuck on the rename part. I have had some help with suggestions in getting some scripting down in order to rename files that dont have extension and move them to another folder (code below) Code: SOURCE_DIR="/home/webstuff" TARGET_DIR="/home/webstuff/trial" for SF in $SOURCE_DIR/* do   case `basename "$SF"` in (HowTos)