Adding a word in front of a word of each line.In that line only one word will be there.
pl help:(
Hi,
Assuming the input file as
inp.txt
hello
shell
scripting
sed 's/^/UNIX /g' inp.txt
Is this what you expect? If not, please add your sample input and output for your problem
Regards,
Chella
Hi,
I dont think it is the one I am seeing for.
Exm:-
I am having a file faulty.txt
in that the lince are given below
12345
abcdef
king
I wanted to add to those line a common word like my name before is ramesh & after is vellanki
it will come like
ramesh12345vellanki
rameshabcdefvellanki
rameshkingvellanki
pl help me
Hi,
sed 's/^/ramesh/g;s/$/vellanki/g' faulty.txt
Regards,
Chella
1 Like
Hi,
great it's working.
Thank you very much.
Regards,
Ramesh