Answer by muru for $1 not working with sed
sed backreferences have the form \1, \2, etc. $1 is more Perl-like. Also, if using basic regular expressions (BRE), you need to escape the parentheses (...) forming a group, as well as ? and +. Or you...
View Article$1 not working with sed
I have a bunch of files that contain XML tags like: <h> PIDAT <h> O I need to delete everything what comes after the first <h> in that line, so I can get this: <h> For that I'm...
View Article
More Pages to Explore .....