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.
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'