|
|
|
|
|
by drongoking
2313 days ago
|
|
Sure, but you can invoke nearly all languages (and write one-liners) at the command line, e.g.: python -c 'import sys; f=open(sys.argv[1]);print(len(f.readlines()))' .zshrc But I wouldn't recommend python as a good one-liner language. So the question remains, what is awk particularly good at? |
|
Now remember, this was popular when perl wasn't even something you could depend upon on all systems.
These days there's no reason you should even do anything terribly complicated in a nasty oneliner. Just save a nice function somewhere and call it with a concise alias.