joeroe3380
MIS
i have in directories /prod/test/data*(01-24)/testr
-rw-rw-rw- 1 1976 Nov 25 00:41 20030117estats.001
-rw-r--r-- 1 32768 Nov 26 11:43 b2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 a2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 b1030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 a4030411nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m1030211nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m2031011nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m4031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 n1031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 n4031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 o3031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 o4031012nlod.001
i have to extract the bytes in column 3 for corresponding (nlod .001) files only in column 6 and for a particular date (m4031012nlod.001 = m4YYMMDDnlod.001 ;corresponds to
date of 20031012). The nlod files are dumped dynamically into directories data* - ranging from (01 -24 "?") and hence the files for a particular date can be located in anyone of these directories depending upon the space availability at run time.
Im trying to get a COUNT of the nlod files for a particular date ,with the bytes displayed and also the counts of nlods files having *bytes which signifies an error.
Im trying to write an awk statement to extract fileds but im not being successful in adding conditions within awk.
Please advice on going through this.
Thanks in advance!
-rw-rw-rw- 1 1976 Nov 25 00:41 20030117estats.001
-rw-r--r-- 1 32768 Nov 26 11:43 b2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 a2030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 b1030411nlod.001
-rw-r--r-- 1 8192 Nov 26 11:43 a4030411nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m1030211nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m2031011nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 m4031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 n1031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 n4031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 o3031012nlod.001
-rw-r--r-- 1 8 Nov 28 00:41 o4031012nlod.001
i have to extract the bytes in column 3 for corresponding (nlod .001) files only in column 6 and for a particular date (m4031012nlod.001 = m4YYMMDDnlod.001 ;corresponds to
date of 20031012). The nlod files are dumped dynamically into directories data* - ranging from (01 -24 "?") and hence the files for a particular date can be located in anyone of these directories depending upon the space availability at run time.
Im trying to get a COUNT of the nlod files for a particular date ,with the bytes displayed and also the counts of nlods files having *bytes which signifies an error.
Im trying to write an awk statement to extract fileds but im not being successful in adding conditions within awk.
Please advice on going through this.
Thanks in advance!