How to search word of the output of a shell script and save in other variable .
Below command will display the list of baselines in my view .
cmd :cleartool lsstream -fmt "%[found_bls]NXp\n" -view $VIEW_NAME
Output :
baseline:MHC_BUILDTREE1.0.1
baseline:JEPG_DUIF_CI
baseline:MOR_BuildTree_BLD_I.0.1
I need to search the line which contains "MOR_BuildTree"
and that output line i have to save in one variable to execute the rest of the commands .
Can any one give the suggestion ?