Computing.Net > Forums > Unix > grep troubles

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

grep troubles

Reply to Message Icon

Name: matt
Date: November 18, 2003 at 18:10:39 Pacific
OS: unix
CPU/Ram: 512
Comment:

I am trying to grep a certain line from a file but i cant seem to get it.

The phrase is a comment of syntax:
/* all on one line */

There are also similar lines that I do not want that are posing me problems:

/*
multi line comment
*/

/*
** Another multi
** line comment
*/

//* single line #2

// ******** //

Can anyone please help me out?




Sponsored Link
Ads by Google

Response Number 1
Name: Anagram
Date: November 19, 2003 at 16:46:39 Pacific
Reply:

How about:

grep -e '[^/]*/\*.*\*/'


0
Reply to Message Icon

Related Posts

See More


get weekday from date SFTP script



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: grep troubles

grep shell script www.computing.net/answers/unix/grep-shell-script/5505.html

Grep expression help www.computing.net/answers/unix/grep-expression-help/4960.html

grep help www.computing.net/answers/unix/grep-help/4368.html