daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2.  
  3. startdir=`pwd`
  4. for archive in `find . -name archive.tar`
  5. do 
  6.     dir = ${archive:0:(`expr length $archive`-11)}
  7.     cd $dir
  8.     tar -xvf archive.tar
  9.     rm archive.tar
  10.     cd $startdir
  11. done
  12.  
  13. exit
RAW Paste Data
Top