Skip to content

Instantly share code, notes, and snippets.

@ifduyue
Last active July 20, 2019 04:57
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 ifduyue/64590e26ba6c5c714f0e5eef8ec65001 to your computer and use it in GitHub Desktop.
Save ifduyue/64590e26ba6c5c714f0e5eef8ec65001 to your computer and use it in GitHub Desktop.
Perl check if lines contain trailing spaces
perl -Mopen=IO,:raw -ne 'chop; print "$ARGV\@$.: $_\n" if /\s$/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment