in reply to Re: Access to directory -> Files -> contents & get the data
in thread Access to directory -> Files -> contents & get the data
I apologise for not using proper text format.I'll make it clear now.
Assume there are 10 files with number-format file names in a directory(Like 1110.9089, 1150.0956 & etc). I need to open each file & check for the particular content in the file.
(i)If the string para201(assume) is present in one of the file after searching through each file, then using Grep i want to extract the value of a variable EXIT(as it will be 0 or other).
(ii) If a string para201 is not present in all the 10 files, then i can give die to exit.
(iii)After getting value of EXIT, i will update that in EXCEL or ACCESS.
This is the concept. This i need to do it in Unix authenticated server. For intial simple coding purpose, I'm trying in windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Access to directory -> Files -> contents & get the data
by oko1 (Deacon) on Sep 18, 2010 at 21:06 UTC | |
|
Re^3: Access to directory -> Files -> contents & get the data
by BrimBorium (Friar) on Sep 18, 2010 at 21:45 UTC |