Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Short c-shell regex to delete lines, how do I code?

Status
Not open for further replies.

kelvin_sg

Advanced Member level 4
Joined
Aug 17, 2004
Messages
102
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Singapore
Activity points
852
c-shell regex

I received a LOG file which I need to remove all lines containing
"my_ram_model.vhd"..

Any quick commands to do that?


:?:

Thanks in advance!
 

c-shell regex condition

You can use sed. For example, you have a file 'a', you want to remove all lines containing 'my_ram_model.vhd'. Type:

sed '/my_ram_model.vhd/d' <a >b

The file 'b' is output.
 

meitolake said:
You can use sed. For example, you have a file 'a', you want to remove all lines containing 'my_ram_model.vhd'. Type:

sed '/my_ram_model.vhd/d' <a >b

The file 'b' is output.

Thank you and it works.

:D
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top