pm215: (Default)
[personal profile] pm215

There's an interesting new feature in GNU sed 4.0:

   echo "yow" | sed -re 'y!why!man!;sv^vuv;yioiai;ss$se -asme;sg g\ngg'

So how many people knew you can now ask sed to execute an arbitrary shell command? Lots of possibilities for shell script nargery there. On the downside, I suppose we're going to have to start looking very carefully at sed commands before running them :-/ (I was going to suggest that we could use --posix to turn off the GNU extensions, but it doesn't actually seem to work! In any case there's a new sed command to say 'turn the GNU extensions on again'...)

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

February 2019

M T W T F S S
    12 3
45678910
11121314151617
18192021222324
25262728   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 7th, 2026 05:23 am
Powered by Dreamwidth Studios