Guest User

Untitled

a guest
Oct 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #/bin/bash/
  2.  
  3. CONFIG=/etc/kernix/doc/config
  4. BACKUPED_DIR=`sed -n '/backup.source.folder/ { s/^[^:]*://; s/,/\n/g; s/*//g; p; }' $CONFIG`
  5.  
  6.  
  7. i=0
  8. while read line
  9. do
  10. tableau[i]="$line"
  11. let i=i+1
  12. done < "$BACKUPED_DIR"
  13.  
  14. echo ${tableau[1]}
  15. echo ${tableau[2]}
  16. echo ${tableau[3]}
  17. echo ${tableau[4]}
  18.  
  19. exit
  20.  
  21. ----
  22.  
  23. ca me donne
  24.  
  25. ╭─[14:14:26]─(200)─ash@celestis:~/Bureau
  26. ╰─> % ./scriptounet.sh
  27. ./scriptounet.sh: 12: cannot open /etc
  28. /var/web
  29. /toto
  30. /home/ash
  31. /home/ash/Bureau: No such file
  32. ./scriptounet.sh: 14: Bad substitution
  33. zsh: exit 2 ./scriptounet.sh
Add Comment
Please, Sign In to add comment