The -n Switch: print the contents of a file or search for a line that contains a particular pattern
$ perl -ne 'print;' yourtextFile # Windows: use double quotes $ perl -ne 'print if /^Igor/;' yourTextFile