Skip to content

Instantly share code, notes, and snippets.

@onemouth
Created June 20, 2018 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onemouth/7fff96468b08d0ff22496dc9ecbdd070 to your computer and use it in GitHub Desktop.
Save onemouth/7fff96468b08d0ff22496dc9ecbdd070 to your computer and use it in GitHub Desktop.
Implement cat by perl
perl -wpl -e '' file1 file2
perl -wnl -e 'print;' file1 file2
perl -wl -e 'while (<>) { print; }' file file2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment