Last active
April 3, 2024 08:13
-
-
Save dex4er/1330416 to your computer and use it in GitHub Desktop.
Perl oneliners
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MD5 checksum (whole file) | |
| perl -MDigest::Perl::MD5=md5_hex -le 'undef $/; $_=<STDIN>; print md5_hex($_)' | |
| # URL encoding by RFC 3986 (by line) | |
| perl -MURI::Escape -ple '$_=uri_escape($_)' | |
| perl -MURI::Escape -ple '$_=uri_unescape($_)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment