Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- now=$(date +"%d_%m_%y_%H:%M_")
- if [ -d $1 ]; then
- path=$1
- else
- mkdir $1
- path=$1
- fi
- shift 1
- for i in $@
- do
- if [ -d $i ]; then
- mkdir $path$i
- elif [ -a $i ]; then
- cat $i > $path/$now$i
- else
- echo "Plik $i nie odnaleziony!"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement