[Nottingham] Shell programming
Martin
martin at ml1.co.uk
Sat Dec 18 15:37:12 GMT 2004
Martin wrote:
[...]
>
> function rot13
> {
> echo $@ | sed y/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM/
> }
> export -f rot13
[...]
I left /that/ uglyness in there some drunken night?!!!
A little contest for the bashers: What's the shortest bash rot13 function?
(OK, so sed is rather useful (:-))
Cheers,
Martin
--
----------------
Martin Lomas
martin at ml1.co.uk
----------------
More information about the Nottingham
mailing list