Formatting text with sed using iTerm2
by pmdulaney - 4/14/13 3:23 PM
In order to make the results of my sed filtering more visible, I would like, when I replace OLD with NEW to underline NEW. I'm using the tcsh shell. So, what I want is something like:
cat file | sed 's/OLD/NEW/g' | more
but I want NEW to be underlined. If you have an answer please give sufficient detail; i.e., please do not assume I know anything but basic sed. Thanks.