Advertisement
pouar

syncunzip.sh

Nov 21st, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.14 KB | None | 0 0
  1. #!/bin/bash
  2. unzip -u $1
  3. mkfifo /tmp/pipe
  4. find * -print|sort > /tmp/pipe &
  5. rm -d $(zipinfo -1 $1|sort|comm -13 - /tmp/pipe)
  6. rm /tmp/pipe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement