in reply to The problem with one-liners...
accompanied by a file oneliners in my home looking like this (assuming some snippets from jmcnamara's collection):function ol { local NAME="$1" shift eval perl $(grep '^'"$1"'\>' ~/oneliners|cut '-d ' -f2-) "$@" }
(Yes, the quotes are missing; this is due to the fact that the line is passed back out of the command substitution as a single string). And then I could just do something likecol1 -naleshift@F;print"@F" rmcr -i -pes/\r// 2spc -pe$_.=$/
$ ol rmcr file1 file2 file
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: The problem with one-liners...
by t'mo (Pilgrim) on Feb 04, 2003 at 18:57 UTC |