System Configuration Extraction

Hi All,

Im trying to extract a bunch of systems configuration. I have created a file called data.txt and used the below scripts to run extraction of data.

Content of data.txt:
/etc/passwd
/etc/shadow
/etc/cron.allow

On the Linux terminal, I entered the following commands to execute my scripts:

<root>for i in 'cat data.txt'
> do
> cp $i Audit/
> done
<root>
_____________________________________________________
It is supposed to extract all the contents in data.txt and output to a file.
But it says 'no such file or directory'
Please help...appreciate lots...thanks.

Do you have a directory called "Audit"?

Why don't you do

tar cf Audit.tar `cat data.txt`
tar tvf Audit.tar

Hm...actually all i need is just to extract the system configuration and dump it in a .txt file.
Any idea how to do it.
I did created the Audit folder but it still display the same msg 'No directory found'

Audit should *not* exist prior to this...

ls -ld data.txt
ls -ld Audit
for i in `cat data.txt`
do 
    cat $i >>Audit
done
ls -ld Audit

ok. so i do not create the Audit yet. The script will create for me right.

alright..will try again...thanks alot mate!