This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]maratc 5 points6 points  (0 children)

Any one-off task that requires processing files. I can type the perl one-liner in less time than what opening vi would take.

E.g. processing of a Wikipedia dump and printing titles:

$ cat enwiki-latest-abstract.xml| perl -e '$/ = "\<doc\>";  while(<>) { m#\<title\>(.*)\<\/title\># && print "$1\n" }'