Skip to content

Instantly share code, notes, and snippets.

@paulmsmith
Created January 25, 2014 00:52
Show Gist options
  • Save paulmsmith/8609996 to your computer and use it in GitHub Desktop.
Save paulmsmith/8609996 to your computer and use it in GitHub Desktop.
useful NAS unix commands
#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