sed basic tips
sed is a great magic tool in stream editing, I use this to cope with cookie file generated by
The command above will only print modified string to
You could edit string in-place by specifying
To pass bash variables into
sed, you need to use double quote to replace single quote:
\1 to represent the matched pattern.
#Append a space right after header tag in markdown syntax sed 's/^\(#\+\)/\1 /' text