My collection of bash one-liners to be used as reference to write more complex scripts.
Last active
June 6, 2016 12:05
-
-
Save albertomm/b33bd7ca57f05a973065ae2f4a183b6a to your computer and use it in GitHub Desktop.
Bash one-liners
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
find . -type f -name "*.m4a" -print -exec avconv -i {} -acodec libmp3lame -ab 256k {}.mp3 \; |
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
sudo bash -c "grep USB /proc/acpi/wakeup | grep enabled | cut -f 1 | xargs -n 1 > /proc/acpi/wakeup" |
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
sudo grep NOQUEUE /var/log/mail.log | grep -o -e "[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+" | sort | uniq -c | sort -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment