Copy data and send it to other file, with diff config
I need a new script to 'grep' data from files in var
and send it to another file in var folder with diff output,
but like you now my Now How is very, very small then to have a idea is something like this:
in file text1.txt have a few lines like this one:
and I whant to send it to file text2.txt
with this output:
G: 88888888 LLLLLLL 55555 IIIIIIII XXX1 YYYY
where 88888888 LLLLLLL 55555, is in all the lines the same and i need to add Y lines but
only the variavel's IIIIIIII XXX1 YYYY in G lines.
File text1.txt is in folder /var/ and text2.txt is in folder /var/ to.
I need also to read conf file with data and send it to diferent files, like:
my.conf
In text1.txt I have Z line too and i need to add to conf to
Well if you help me with this i will very happy, Thank's.
Note: Froget in files there is coments "#", this is not to display or show, then ignore coments.
Sorry for my english...
I think i explained well but any question i will try to explained better...
I am very new to UNIX as well as scripting so please be gentle, haha.
I have a Linux client which has a mount point mapped to my /etc folder on a NetApp FAS system. I woudl like to be able to copy the hosts and rc files once a week from the FAS to a different location for backup.
When the... (4 Replies)
Hi All,
Can anyone please explain me how to read data from config file in Perl.
Suppose i have a config file named cfile. The data in config file is
name=parth
lname=mittal
user=2007
hostname=fluoride
username=parthmittal
password=XXXXXX
account=unix
url=www.unix.com
... (2 Replies)
hi..
i have one c++ pgm which run shell script.shell script reads username and password from file.This pgm check username password is correct or not.After checking this i want to send config file of respective user to other application.I made config file also.My problem is how to send this... (1 Reply)
hi..
i have one c++ pgm which run shell script.shell script reads username and password from file.This pgm check username password is correct or not.After checking this i want to send config file of respective user to other application.I made config file also.My problem is how to send this config... (1 Reply)
I have a script with few pre defined variables.
Also have a config file. Something like this.
# config file
# Define Oracle User
MOD1_TAG=abcde
MOD2_TAG=xyzabc
MOD3_TAG=def
I need to parse the config file and have each of the value copied to different variables.
Please suggest what... (1 Reply)
Hi ,
a:) i have configuration file with pattren
<Range start no>,<Range end no>,<type of records to be extracted from the data file>,<name of the file to store output>
eg:
myfile.confg
9899000000,9899999999,DATA,b.dat
9899000000,9899999999,SMS,a.dat
b:) Stucture of my data file is... (3 Replies)
I have to synchronize files on two machines, but these are not connected via LAN. Now I'm using DVD's to copy new data.
The question is how can I create a list of files on one machine and having this list archive or copy only new files from other. Are there any standard tools like diff/patch for... (3 Replies)