|
|
|
|
|
by nabb
5368 days ago
|
|
tail can be done in ruby can be quite succinctly with the $< (ARGF) variable: ruby -e'$><<$<.map.last(10)'
For the rest of the ruby one-liners in the page the author references, most can be done more easily with standard command line tools (although most people aren't well-versed in sed, so 'ruby -pe puts' might be better than 'sed G'). |
|