Created
August 3, 2018 22:22
-
-
Save thedoc31/270a7315fb071ae0123bbbc3005869fa to your computer and use it in GitHub Desktop.
Find and collapse multiple RewriteRules with multiple languages into a single one-liner of all languages that use it
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
grep "<thecommonURL>" <thefile> | awk '{print $2}' | cut -c 2- | cut -f2-3 -d"/" | sort | tr '\n' '|' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment