Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Using grep result in Makefile

Status
Not open for further replies.

kjm

Junior Member level 1
Joined
May 22, 2012
Messages
16
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,283
Location
India
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.
 

accordg9

Newbie level 4
Joined
Jan 17, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,314
grep | ab | grep cd | grep ef | grep gh

result of grep

ab
cd
ef
gh
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top