I have file Blackberry jad file:
RIM-COD-URL-12: HelloWorld-12.cod RIM-COD-Size: 68020 RIM-MIDlet-Icon-2-1: ____HOVER_ICON_res/icon/blackberry/icon-68.png,fo
Use sed -n and only print lines that match RIM-COD.
sed -n
sed -n -e '/^RIM-COD-/p' yourfile.txt