Tag Archive 'one liners'

Aug 28 2009

Top fifteen Perl one liners

Published by amjad under Centos, Debian, Fedora, Red Hat, Ubuntu

Following are 15 Perl one liners that are I have found the most useful.
1. To search for word Linux in all files under /etc/
perl -wnl -e ‘/Linux/ and print;’ /etc/*
2. To see matching 5 digits number in file called members

2 responses so far