Dec 3, 2012 #1 K kjm Junior Member level 1 Joined May 22, 2012 Messages 16 Helped 5 Reputation 10 Reaction score 5 Trophy points 1,283 Location India Visit site Activity points 1,389 Hi, I am giving a test name from terminal which I am reading in Makefile. I want to grep the test name for say (ab, or cd, or ef) & I want to use this grep result in If-Else to assign value to another variable. How can I do it? Thanks in advance.
Hi, I am giving a test name from terminal which I am reading in Makefile. I want to grep the test name for say (ab, or cd, or ef) & I want to use this grep result in If-Else to assign value to another variable. How can I do it? Thanks in advance.
Jan 17, 2013 #2 A accordg9 Newbie level 4 Joined Jan 17, 2013 Messages 6 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Visit site Activity points 1,314 grep | ab | grep cd | grep ef | grep gh result of grep ab cd ef gh