hmm, now what can I do with this...?
Aug. 22nd, 2005 12:42 amThere'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'...)
no subject
Date: 2005-08-22 10:08 am (UTC)Actually, you're right: (
vis a version-check and enable-extensions command)so the main problem is that sed doesn't seem to be disabling
ein POSIX mode: