Search Results

Search: Posts Made By: Jombee
6,652
Posted By Jombee
Awesome, thanks you guys. That really was a...
Awesome, thanks you guys. That really was a great help. I've found that grep truly is easy to use and rather powerful.

That's the good thing about UNIX and its utilities. Yeah, they may be...
6,652
Posted By Jombee
Wow, that totally worked! grep -E...
Wow, that totally worked!

grep -E 'foo[^(]+$' index2.html

Can we go into this a little bit deeper?

-E: match using extended regular expressions.

[^(]: This is confusing me a little...
6,652
Posted By Jombee
If I take out the ^ then grep matches nothing. ...
If I take out the ^ then grep matches nothing.

I'm not sure what you mean by it matches the beginning of a line...I thought that the ^ means not.

So basically, what I'm trying to express in...
1,329
Posted By Jombee
Gots to do a little bit of research. UNIX is...
Gots to do a little bit of research. UNIX is vast and ancient (by computer standards).

Try these websites:

http://www.geog.ucl.ac.uk/~plewis/teaching/unix/unix_cmds.html
6,652
Posted By Jombee
More Grep - Regular Expressions
Hey all! I'm trying to search a file and return all instances of a word, let's say 'foo' in this case, as long as it's not a function name. For example:

1) int foo; //OK
2) //'this is totally...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 03:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy