1.

Solve : using ed?

Answer»

If I use ED for a file and then do the FOLLOWING:
g/the/s/the/one/g
g/the$/s/the$/one/
g/^the/s/^the/one/
do I NEED trailing g for the second and THIRD statments ? and if not why not?
i SUGGEST awk
Code: [Select]awk '{gsub("the","one")}' file

this says to globally replace word "the" to "one"



Discussion

No Comment Found