Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash/
- CONFIG=/etc/kernix/doc/config
- BACKUPED_DIR=`sed -n '/backup.source.folder/ { s/^[^:]*://; s/,/\n/g; s/*//g; p; }' $CONFIG`
- i=0
- while read line
- do
- tableau[i]="$line"
- let i=i+1
- done < "$BACKUPED_DIR"
- echo ${tableau[1]}
- echo ${tableau[2]}
- echo ${tableau[3]}
- echo ${tableau[4]}
- exit
- ----
- ca me donne
- ╭─[14:14:26]─(200)─ash@celestis:~/Bureau
- ╰─> % ./scriptounet.sh
- ./scriptounet.sh: 12: cannot open /etc
- /var/web
- /toto
- /home/ash
- /home/ash/Bureau: No such file
- ./scriptounet.sh: 14: Bad substitution
- zsh: exit 2 ./scriptounet.sh
Add Comment
Please, Sign In to add comment