This file contains 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