SHARE
TWEET

so cw7

LazySenpai Nov 13th, 2019 (edited) 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i in `ls $1`; do
  2.     if [ -f $1/$i ]; then
  3.         if [[ $i != *.kopia ]]; then
  4.             cp $1/$i $1/$i.kopia
  5.         fi
  6.     fi
  7.     if [ -d $1/$i ]; then
  8.             chmod g+w $1/$i                
  9.     fi
  10. done
  11. ls $1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top