Possible Duplicate:
To Find a Particular line and copying a specific content within the line using bash scripting
I have a file system.mss
which contains blocks of information like this one:
BEGIN lmb_bram_if_ctnlr
PARAMETER INSTANCE = ilmb_cntlr_0
PARAMETER HW_VER = 3.00.b
PARAMETER C_BASEADDR = 0x00000000
PARAMETER C_HIGHADDR = 0x0003ffff
BUS_INTERFACE SLMB = ilmb_0
BUS_INTERFACE BRAM_PORT = ilmb_cntlr_0_BRAM_PORT
END
I want to copy the value for PARAMETER C_HIGHADDR
into another file, but only for this kind of block; there are other blocks in the file, starting with different BEGIN
lines, I want to ignore.