Advertisement
hackbyte

unrarall / scripte die die welt nicht braucht ;)

Oct 29th, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/bin/bash  ## unrarall (no copyright) by hackbyte - have fun ;)
  2. pushd "$1" &>/dev/null ; find "$1" -iname \*.rar | while read ; do
  3. REPLYDIR=$(dirname "$REPLY") ;REPLYFILE=$(basename "$REPLY")
  4. pushd "$REPLYDIR" &>/dev/null ; unrar x -y "$REPLYFILE" ;if [ $? == 0 ] ; then rm -Rvf ./*.r?? ;
  5. else ; exit 255 ; fi ; popd &>/dev/null ; done ;popd &>/dev/null
  6. #
  7. # Scrippte die die welt nicht braucht teil 9817439125364123,2  
  8. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement