Need to move single line with PRM:TRG
keyword to top of the file using sed
File content:
FOOBAR:SCN:NO_TRG
FIZZBAR:SCN:NO_TRG
BEBAR:PRM:TRG
Output expected:
BEBAR:PRM:TRG
FOOBAR:SCN:NO_TRG
FIZZBAR:SCN:NO_TRG
Need to move single line with PRM:TRG
keyword to top of the file using sed
File content:
FOOBAR:SCN:NO_TRG
FIZZBAR:SCN:NO_TRG
BEBAR:PRM:TRG
Output expected:
BEBAR:PRM:TRG
FOOBAR:SCN:NO_TRG
FIZZBAR:SCN:NO_TRG