So this is my problem: when a txtfile is processed, its moved to a directory called YYMMDDHHMMSSSS.
Example: /Processed/090624005217
And I want to check that the file ends up in that folder. One of my problems is that I dont know the exact name of that folder..
Then i want to compare that file, and see that its exactly the same as
another file called $TEMP_FILE=/bla/blabla/blah.txt
This is what ive done so far >
It outputs:
/Processed/090624005217
/Processed/090624005217/blah.txt
find: cannot open blah.txt: No such file or directory
But where do i go from here? And why does it say that it cannot open file?
---------- Post updated at 01:52 AM ---------- Previous update was at 01:39 AM ----------
I'm not sure where are all the files that you're trying to find exactly (is blah.txt in the same Processed/090624005217 directory than the file you're trying to compare it to?).
But I can explain the error that find outputs.
Your syntax for find is wrong.
If you use:
find /Processed/$DATE* blah.txt
find will search for find in all directories /Processed/$DATE* and blah.txt.
If blah.txt is the name you're trying to find you should use:
/Processed/$DATE* -name "blah.txt"
I have some files in a directory with two different extensions which get created everyday. Can you please help me out in getting the average file size for both these extensions and checking it with the last two file sizes of the same file extension ?
To be more clear..
Lets say I have 10 files... (1 Reply)
Hi,
I need to compare a file with its contents matching to that of another file(filename , received date and record count).
Lets say has File A original data
Ex -
1,abc,1234
2,bcd,4567
3,cde,8901
and File B has details of File A
Ex-
FILEA.TXT|06/17|2010|3
(filename)|(received... (18 Replies)
Hello all,
I need to write a script which has following requirement:
Need to read the filenames from text file and then search for the above read files in the required directory and if match found backup them in a backup folder.
And also need to compare and verify whether the files in the... (7 Replies)
Hi all,
I have one file with IDs
Q8NDM7
P0C1S8
Q8TF30
Q9BRP8
O00258
Q6AWC2
Q9ULE0
Q702N8
A4UGR9
Q13426
Q6P2D8
Q9ULM3
A8MXQ7
I want to compare ID file with another file which has complete information about these IDs and also about other IDs which are not in the above ID file. As... (10 Replies)
Hi,
I have two files with below data::
file1:-
123|aaa|ppp
445|fff|yyy
999|ttt|jjj
555|hhh|hhh
file2:-
445|fff|yyy
555|hhh|hhh
The records present in file1, not present in file 2 should be writtent to the out put file.
output:-
123|aaa|ppp
999|ttt|jjj
Is there any one line... (3 Replies)
Hello,
I have a file with two fields. The first field repeats itself for quite a while but the second field changes. What I want to do is to go through the first column until its value changes (and while it doesn't, verify that the second field is in a sequence from 0-15).
Example input:
... (13 Replies)
Help needed...
Can you tell me how to compare the last two couple entries in a file and print their result in new file..:confused:
I have one file
Check1.txt
\abc1 12345
\abc2 12327
\abc1 12345
\abc2 12330
I want to compare the entries in Check1 and write to... (1 Reply)
Dear Members,
I need a perl code:
1. Which will open first file with two columns separated by tab:
37 Distribution and seasonal variation of trace metals
85 Seasonal variability of the mixed layer in the central Bay
99 Dynamics of transparent exopolymeric particles (TEP)
103 Bacterial... (0 Replies)
hi,
i have to check the name of file in other directory which contains number of files to check for duplicte file name avaliable or not.
thanks (2 Replies)