I am trying to create a backup script (/bin/sh type) that would read the directories and create a seperate backup file for each directory. I can easily get the directories into a text file with "ls -d *". How can I run through that script one line at a time putting the contents of the line into a variable, then do something with it?
foreach line in file{ $variable="line contents" run some commands that need $variable contents }
Thank You in advance for any help.
Steve
-- This message has been scanned for viruses and dangerous content by the MailScanner at ow5, and is believed to be clean.
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list