Created
January 25, 2014 00:52
-
-
Save paulmsmith/8609996 to your computer and use it in GitHub Desktop.
useful NAS unix 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
#recursively extract rars from subdirectoes to current dir | |
/opt/bin/find -name '*.rar' -exec unrar e '{}' ';' | |
#replace space with a dot in file names (and folders) | |
ls -1 | while read a; do mv "$a" `echo $a | sed -e 's/\ /\./g'`; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment