If all you got is a hammer, then everthing starts lookin' like a nail.
A Perl one-liner is complete overkill for something like this, especially when you have so many more appropriate/less obfu-looking tools and solutions at hand ...
Updates:
The echo trick may be Bourne/Korn-centric; buckaduck reports (and I've verified) that it doesn't work under csh.
Also corrected the search strings for grep and find.
--k.
In reply to Re: Perl oneliners for Unix commands
by Kanji
in thread VVP:Perl oneliners for Unix commands
by vivekvp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |