SHARE
TWEET

Untitled

a guest Jun 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. cd ~
  3.  
  4. touch /home/$USER/bin/dziennik.txt
  5. echo $filename
  6.  
  7. for i in $( find . -type f -size +100k )
  8. do
  9.     echo $i
  10.     echo "1. usuwa , 2.komprersja  ,3 lub inny znak nic "      
  11.     read a
  12.     if [ $a -eq 1 ]
  13.         then
  14.         echo "$i $(date)" >> /home/$USER/bin/dziennik
  15.         rm $i
  16.     elif [ $a -eq 2 ]
  17.         then
  18.         gzip $i
  19.     fi
  20. done
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top