ObRetort: in superlightweight scripting, as in so many areas, Ruby remains the bastard stepchild of perl. But at least you can be glad that oneliners like
cat <file> | ruby -ne 'printf("%-6s%s", $., $_)'
(which as you can plainly see adds line numbers to a file) demonstrate the inherent cleanliness that Ruby lords over perl.
no subject
Date: 2006-09-25 07:15 pm (UTC)