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'...)

February 2019

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

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

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