Hi,
I'm using the ksh shell.
The scenario:
I have a couple of directories
/home/fd
/home/fd/prsd
home/fd/stg
now i have number of files in each of these directories.
some of the files are zipped using gzip so their extension is .gz
the content of the files is as follows
D|abc|1324|ba92|adfds||324 -1 1 | | bcd |||||
D|as|cdsa|235|as|gf=12|sdf34|$||||sas|a5#|
Basically I mean each record is in a newline and is delimeted with the pipe.
All the files have the same structure(remember some are zipped)
and there can be anywhere between 40K and 200K records in a file
So if you count the pipes in the record(line) we have 13 pipes in each line(record). All the files will have the 13 pipes.
But i have one file which has 14 pipes instead of 13(means each record in that file will have 14 pipes)
and I need to find this fiel with 14 pipes.........
It may be in either of these directories and may or maynot be zipped...
Please help me out.....
Many Thanks