Advertisement
kheeper

find cfg

Jan 20th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. root@dm7025:~# cat cfg-test.sh
  2. #!/bin/sh
  3.  
  4. i=0
  5.  
  6. for cfg in $(find /etc /home /usr /tmp /var -name oscam.conf);
  7. do
  8.     CFG[$i]=$cfg;
  9.     let i++;
  10. done
  11.  
  12.  
  13.  
  14. root@dm7025:~# ./cfg-test.sh
  15. ./cfg-test.sh: line 9: CFG[0]=/etc/tuxbox/config/oscam.conf: not found
  16. ./cfg-test.sh: line 9: CFG[1]=/var/oscam.conf: not found
  17. root@dm7025:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement