Created
June 16, 2016 16:42
-
-
Save tzi/580df8ec040990e0e741ec0a3c24211e to your computer and use it in GitHub Desktop.
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
# How to search the "z-index" values of your CSS project | |
git grep -h "z-index" | sed -E "s/.*z-index\s*:\s*(-?[0-9]+).*/\1/" | sort | uniq -c | sort -b -r | |
# Explanations | |
# git grep -h "z-index" | |
# -> Find every line of your project that contain "z-index" | |
# sed -E "s/.*z-index\s*:\s*(-?[0-9]+).*/\1/" | |
# -> Only keep the property value | |
# sort | uniq -c | sort -b -r | |
# -> count the number of occurrences by value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment