I have written a shell script which looks like below:
grep -v ',0,' ./DATA/abc.001 > ./DATA/abc.mid
egrep $GREPSEARCH ./DATA/ebc.mid > ./DATA/abc.cut
the variable GREPSEARCH has values like the below:
'|1311618,1|1311618,5|1311618,9|1311618,01|1311618,02|1311618,05|1311618,06|1311618,07|1311618,08|1311618,09|1311618,P|1350065,1|1350065,5|1350065,9|1350065,01|1350065,02|1350065,05|1350065,06|1350065,07|1350065,08|1350065,09|1350065,P|'
data with similar patterns exist in the abc.001 file
Now my problem is that the abc.mid file is getting created successfully but the abc.cut file being created by the redirection of egrep output is just creating a file with '0' bytes.
Can someone let me know if there something that I have missed out....
Thanks
Indra
PS: I have checked the disk space and there is enough space for the file to be created.