I've got a file with the following layout:
#STMP FSgroup
filename /filesysname1
filestatus 2
#STMP FSstatus
filename /filesysname1
ratio 30
#STMP FSgroup
filename /filesysname1
filestatus 2
#STMP FSstatus
filename /filesysname6
ratio 60
I'm trying to write a SHELL (ksh) script that'll search the file say e.g filename = /filesysname1 grouped under FSstatus and get everthing beneath FSstatus group.
Thus, I should be able search for anygroup, i.e. lines that start with an # and everything below it until the first blank line. I also need to know the group name, i.e. either FSstatus or FSgroup
Look really difficult for me, any help out there
tks
William