I have a file (ori_file) with following contents:
Code:
a_name1
a_name2
a_name3
I have to create 2 files.
First file (outfile1) should have following contents ( "abc" first, then original word, then this word with first character removed):
Code:
abc a_name1 _name1
abc a_name2 _name2
abc a_name3 _name3
Followed by another file (outfile2) with:
Code:
def _name1
def _name2
def _name3
How can this be done with a bash script? Thanks for your help.