[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shell Skript mit config file



Hallo Moritz!

> ich möchte ein shell Skript schreiben, dass mit einem config file gesteuert 
> wird. Hat jemand einen Code-Schnipsel, der dieses file parsen kann?
CONFIG_FILE=/etc/backup
DATA_DIRS=( $(< $CONFIG_FILE) )
for DIR in ${DATA_DIRS[*]}; do

Jede Zeile ein Eintrag

CU        
         
  Michael  
          
--                                                       
           Michael Ott, e-mail: michael@zolnott.de, www.zolnott.de           
I am registered as user #275453 with the Linux Counter, http://counter.li.org.

Attachment: signature.asc
Description: Digital signature


Reply to: