 vote
 |
|
My previous post was about Awk One-Liners Explained and now I bring to you Sed One-Liners Explained!
Most people are only familiar with one particular command of sed, namely the "s" (substitute) comand. s/comand/command/. That is unsatisfactory. Sed has at least 20 different commands for you.
For example, any ideas what this sed one-liner does?
sed '/n/!G;s/(.)(.*n)/&21/;//D;s/.//'
Read the article to find it out!
| | |
| |
|
|