|Pathologically Eclectic Rubbish Lister|
Re: Favourite One-liners?by etcshadow (Priest)
|on Jun 27, 2005 at 22:11 UTC||Need Help??|
Awesome meditation. I have so many good ones that I don't even know where to start. Perhaps with the most pathological thing in my .bashrc?
where ptyexec is this. (You can just drop the ptyexec, though, if it gives trouble, it'll just truncate the output width to 80 chars, which is a little ugly).
There's the ever-popular:
For fixing line-ends.
And another simple one that I love because of how it demonstrates a neat concept is just:
(better known as "sum").
Update: added trailing slash to the line-end fixing regex. Thanks, tlm