I have a dozen of files without extention, and I need to add .sh to all the files are a script Bourne-Again shell.
How do you achevie that without using sed, awk,...
I located the files like so:
file * | grep "Bourne-Again shell"
With the command xargs how do you add an extension to the files that resulted from above? If possible file command must be included in the pipes to locate the files.