Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. #! /bin/bash
  3.  
  4. if [ $# -eq 1 ];then
  5. if [ -f $1 ];then
  6. echo Jest plik $1, szukam linkow twardych i proponuje usuniecie
  7. find ~ -inum `ls -i $1|cut -d " " -f1` #-ok rm '{}' \;
  8.  
  9. else
  10. echo Nie ma pliku $1
  11. fi
  12. else
  13. echo Nie przekazano parametru, przy uruchomieniu podaj parametr
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement