2
Say I have a file structured so:
X sequence 1 is this
ABCDE FGH HIJ
X sequence 2 is this
ABCDE FGH HIJ
How would I conditionally remove whitespace? I know the snippet below will remove all whitespace. How would I be able to remove whitespace only on the lines beginning with X?
sed 's/ //g'
I also had seen
'/^startswith
been used, but can't seem to tie them together to work.
Thanks.
Excellent. I was doing similar, but over-complicating it and adding junk later one. Thank you for your help. – TW93 – 2017-03-02T11:30:09.907