If I use ED for a file and then do the FOLLOWING:g/the/s/the/one/gg/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")}' filethis says to globally replace word "the" to "one"
Your experience on this site will be improved by allowing cookies. Read Cookie Policy