Skip to content

Instantly share code, notes, and snippets.

@sebastianrothe
Created September 7, 2017 19:37
Show Gist options
  • Save sebastianrothe/71a3794b68388f2a99bd50c15049eca9 to your computer and use it in GitHub Desktop.
Save sebastianrothe/71a3794b68388f2a99bd50c15049eca9 to your computer and use it in GitHub Desktop.
Extract downloaded files with Password
#!/bin/sh
ls *.part*01.rar -1 | head -n 1 | xargs -n 1 -r unrar x -P
# synology nas version
ls *.part*01.rar -1 | head -n 1 | /usr/bin/xargs -n 1 -r unrar x -P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment