Hello,
I have a large number of sed commands that I execute one after the other, simply because I don't know if there's a shorter way to do it. I hope someone can help me save some time
These are my commands:
1.) remove all " in the file:
sed -e 's/\"//g' file
2.) insert ( and space at the beginning of each line:
sed 's/^/( /' file
3.) insert " ) at the end of each line:
sed 's/$/\" )/' file
4.) insert blizzard_ at position 9:
sed 's/./blizzard_/9' file
5.) insert space and " at position 22:
sed 's/./ \"/22' file
6.) delete 5th and 6th character in each line:
sed 's/^\(.\{5\}\).\(.*\)/\1\2/' file
sed 's/^\(.\{6\}\).\(.*\)/\1\2/' file
Thanks a lot in advance,
Kat