Hi ,
I want to append the contents of many files (not knowing exactly how many files, i will get) in to one target file on a day today basis.
The file names are similar except last value (which is sequence number)
eg) file1_20061026_1
file1_20061026_2 etc.,
How can i read all the files... (2 Replies)
Hi ,
i have three server
server1 -> Unix OS ,ftp enable IP ->10.8.219.190
server 2 -> Unix OS ,ftp enable
NIC 1 IP ->10.8.219.191 ,NIC2 ->192.168.0.5
server3 -> windows OS ,ftp enable NIC1 ->192.168.0.6.
hence server 1 and server 3 can not communicate ,but server 2 can... (1 Reply)
Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents.....
I try with "diff"...... but confusion how to use "diff" with if ---else
Thanking you (5 Replies)
Hi,
I want to write a script that will write a couple of lines into a file, including the output of another file... Can anyone help?
Scenario
Day 1
File 1 Contents -->
Japan
File 2 contents (to be wriiten by the script) -->
Name: Sameer
Country: Japan
Day 1
File 1... (0 Replies)
Hi,
I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file.
i am able to... (2 Replies)
hi,
i have two servers in unix. say server1 and server2. my shell script is running on server1.
In server2, there is a directory (/etc/data/) which contains some text files.
I want to write the list of filenames in server2 in a file and display the file in server1.
In short, i want to... (3 Replies)
Hi ALL,
Requirement:Connect server2 from server1 and get the list of files generate on currentdate .
Basically i need to check the files in server1 and server2 on currrent date is equal on each 1 hr frequency.
Can anyone help me on this.
Thanks in advance
Hari (2 Replies)
Hello there,
I have a files f1.html, f2.html.
I have a final file called final.html which is something like the below snippet
<!DOCTYPE html>
<html>
<body>
<h1 align="center">aaaaa Report</h1>
<pppp><p><b>pppp Repository</b></p>
</pppp>
<qqqq><p><b>qqqq Repository </b></p>... (4 Replies)
Shell script logic
Hi
I have 2 input files like with file 1 content as (file1)
"BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt
File 2 contents as fle(2)
"BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt
I want to get... (22 Replies)
Hi Folks,
I have a requirement of file management on different servers.
Source Server is SERVER-A.
Two servers will fetch files from SERVER-A: SERVER1 and SERVER2.
4th SERVER is SERVER-B, It will fetch files from SERVER1. If SERVER1 goes DOWN, SERVER-B will fetch pending files from... (2 Replies)