changingthe name of a set of files
I am trying to run the command cat on a set of files with the extension .sgm. I want the output to be in the same filename with the extention .sgml for example
That is the command:
cat *.sgm "some processing" > processedfile.sgml
How can I keep the same file name in output files. Please help.