Created
October 23, 2023 16:41
-
-
Save borwickatuw/3f5c905f3902bb7bc55574f236178681 to your computer and use it in GitHub Desktop.
URLs that need escaping - perl one-liner
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
| # This finds org-mode links that have slashes in them. I used this to find URLs that needed | |
| # org-mode "escaping" with ='s around them (e.g. example.com/this/that/ --> =example.com/this/that/= ) | |
| # close ARGV if eof resets $. (the line number) | |
| perl -lne 'print "$ARGV $.: $1" if m|(\[https:[^\]]+\]\[[^\]]+/.*?\])|; close ARGV if eof;' * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment