Location: India [Great India] hey hey .. urs also greaty country frnd
Posts: 60
Thanks Given: 0
Thanked 0 Times in 0 Posts
watching for a file
Hi dears,
The script should watch for a file in particular directory. If the file not come into the directory even after 30 seconds from execution of the script, then script should exit saying “file not arrived”
Lateral though way of letting the script flow after the file arrives.
Beware that the presence of a filename in a directory does not mean that the process writing the file has finished.
The process writing the file could write the file under a temporary name and then rename the file to its correct name at the end of the transfer.
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,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
I'm watching a particular expression as it is appended in a line to a file:
tail -f LOG | sed -n /"$@"/p
So whatever value I pass into this script will tail -f the file, but only show me lines that contain the value:
lgwatch expression
However some of the output contains a #20 control... (8 Replies)
Here's a fun one...
What's the best way to script looking for a process when it runs? For example, what if a process is running that's been set up graphically, which you would like the entire command line string for? Say it's rpm for the sake of having a command to use as an example. You want... (2 Replies)