Mar
12th
Thu
12th
tip: sed
to keep part of a pattern for substitution, use parens+backslash, e.g. s/123\([xyz]\)/\1/ http://tinyurl.com/aaw7q
to keep part of a pattern for substitution, use parens+backslash, e.g. s/123\([xyz]\)/\1/ http://tinyurl.com/aaw7q
to print text between two patterns, inclusive, use sed -n /pattern1/,/pattern2/p