I have a folder containing 500 files like this: xaa xab xac xad aae aafI want to add .txt to the end of all of them to get something like this:xaa.txtxab.txtxac.txtxad.txtHow would this be done?
Append file extension on names of multiple files
linux;shell;filenames
With simple find + mv command:find yourfolder/ -type f -exec mv {} {}.txt \;