read file in unix

September 8, 2012 at 09:28:31
Specs: unix
hi team,

i have a file contains data as follows

F1 file
---------------------------
date system name
1-jan-2012 x
1-jan-2012 y
1-jan-2012 x
5-jan-2012 y
3-jan-2012 z
3-jan-2012 z
4-jan-2012 x
4-jan-2012 x

now i want missing system date if any from F2.

for example: let say x system date is not available in this file for 2,3 jan2012. if not available then i need to display 0 for missing date for system x.

let say z system date is not available in this file for 1,2 jan2012. if not available then i need to display 0 for missing date for system y.


quick reply must be appreciated.


See More: read file in unix

Report •

#1
September 8, 2012 at 16:47:03
I'm not much into doing your homework, but these two links might give you an idea:

http://www.computing.net/answers/un...
http://www.computing.net/answers/un...

If you have a specific question, please post your code examples.


Report •
Related Solutions


Ask Question