Last active
December 28, 2017 21:56
-
-
Save romelperez/40283b97b36ad6ad81fda6e884b52681 to your computer and use it in GitHub Desktop.
Linux shortcuts commands
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
# Line count | |
find ./ -name '*.js' | xargs wc -l | |
# Convert webp files whithin directory to png | |
find ./ -name "*.webp" -exec dwebp {} -o {}.png \; | |
# Generate random string | |
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment