Merge the data from two servers into a single file
Hi All,
Need your inputs for the below.
I have 2 different servers 611 & 610, where i would be running two scripts. And would would be running one script from 611 at every 4 hours to merge the data from the 2 servers into 2 files and send a mail.
so below is the code snippet for 611:
code snippet for 610:
Now my question is how to merge the data from 611 & 610 in the below format:
Please share your inputs.
Thanks!!
---------- Post updated at 11:32 PM ---------- Previous update was at 09:44 PM ----------
Can combine the data from 2 servers by using below:
final script on 611:
Also, from one server can read other server file using ftp, please correct me if I am wrong.
Now the only thing is left how to add the column names to the final output.
Hello everyone !
I need to get the data in a file into a string.
file1
1
2
3
4
5
I need to write a script where the file1 info is stored in a string (say variable s). So the output should be
1,2,3,4,5 or (1,2,3,4,5)
If i say
echo $s or print $s
output should be
1,2,3,4,5
or
... (7 Replies)
My input:
File_1:
2000_t
g1110.b1
abb.1
2001_t
g1111.b1
abb.2
abb.2
g1112.b1
abb.3
2002_t
.
.
File_2:
2000_t Ali england 135
abb.1 Zoe british 150
2001_t Ali england 305
g1111.b1 Lucy russia 126 (6 Replies)
Dear all,
Please help me ,,,,
if I have input file like this
A_AA960715 leucine-rich repeat-containing protein GO:0006952 defense response P
A_AA960715 leucine-rich repeat-containing protein GO:0008152 metabolic process P
A_AA960715 leucine-rich... (5 Replies)
:confused:Hello -- i just joined the forums. I am a complete noob -- only about 1 week into learning how to program anything... and starting with linux.
I am working in Linux terminal.
I have a folder with a bunch of txt files. Each file has several lines of html code. I want to combine... (2 Replies)
All,
I have an excel sheet Excel1.xls that has some entries.
I have one more excel sheet Excel2.xls that has entries only in those cells which are blank in Excel1.xls
These may be in different workbooks. They are totally independent made by 2 different users.
I have placed them in a... (1 Reply)
Folks,
I would like to know how to merge two .doc files from different servers.
For example,
df -h > host1.doc --> from host1
df -h > host2.doc --> from host2
Now i want to merge these different server details into single .doc file.
Pls let me know, if any questions...
Regards,... (2 Replies)
Hi Experts,
I have created multiple scripts and send the output to new file, getting this output to my mailbox on daily basis.
I would like to send the all outputs to a single file, need to merge all file outputs on a single file.
For example,
Created script for
df -h > df.doc
grep... (7 Replies)
Hello,
I'm trying to create multiple commands using a variable input from another file but am not getting any successful results.
Basically, file1.txt contains multiple lines with single words:
<file1.txt>
yellow
blue
black
white
I want to create multiple echo commands with these... (8 Replies)
Hi,
From a file, using:
awk -F" " '{ if (NF == 6) print $1, $2, $3, $4, $5, $6; if (NF == 5) print $1, $2, $3, $4, $5; }'
i printed out the required output. But i'm trying to merge the columns. Please look at the desired output. Any suggestions? Thanks
Output:
00015 PSA1 ... (5 Replies)
Need help figuring out how to merge data from a file. I have a large txt file with some data that needs to be merged from separate lines into one line.
Doug.G|3/12/2011|817-555-5555|Portland
Doug.G|3/12/2011|817-555-5522|Portland
Steve.F|1/11/2007|817-555-5111|Portland... (5 Replies)