Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !/bin/bash
- if [ $# = 0 ]
- then
- echo -e "Użycie: $0 folder_do_ukrycia_bądź_okrycia -[hu]\n Opcja h ukrywa folder a u\n go odkrywa"
- exit -1
- fi
- if test -d $1||test -d .$1
- then
- case $2 in
- -h) mv $1 .$1;echo "FOLDER `dirname $1`/$1 został ukryty przez użytkownika
- -u) mv .$1 $1;echo "FOLDER `dirname $1`/ $1 został przywrócony przez użytkownika
- esac
- else echo "$1 to nie folder!";exit -1
- fi
Advertisement
Add Comment
Please, Sign In to add comment