I'd like to be able to search the first colon delimited field in a file that has the following lines in it(file name is nfs.lis):
sp30:sp16:/stage:/stage
sp30:sp13:/mksysb:/mksysb1
sp16:sp13:/mksysb:/mksysb
For example: I want to grep sp16 nfs.lis and I want it to return just the sp16:sp13:/mksysb:/mksysb line. I do not want the sp30:sp16:/stage:/stage line to come up int the search. How can I accomplish this??????
sp30:sp16:/stage:/stage
sp30:sp13:/mksysb:/mksysb1
sp16:sp13:/mksysb:/mksysb
For example: I want to grep sp16 nfs.lis and I want it to return just the sp16:sp13:/mksysb:/mksysb line. I do not want the sp30:sp16:/stage:/stage line to come up int the search. How can I accomplish this??????