Results 1 to 4 of 4
Hello
I wanna use grep in a bash script to return the exact match of my choice.
eg:
grep "[:space:][0-9]something[0-9][:space:]" myfile.txt
This is rather a grep issue, though. However, I ...
- 12-02-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 2
bash scripting
Hello
I wanna use grep in a bash script to return the exact match of my choice.
eg:
grep "[:space:][0-9]something[0-9][:space:]" myfile.txt
This is rather a grep issue, though. However, I get lines including such a match. But I want the words that match my wildcard expression 'cos I wanna append it to another text file.
Can someone help pls?
DH
- 12-02-2009 #2Just Joined!
- Join Date
- Dec 2009
- Posts
- 2
sorry guys. my bad! i found the solution.
apparently, it was easy.
- 12-02-2009 #3Just Joined!
- Join Date
- Jan 2005
- Posts
- 17
- 12-03-2009 #4Just Joined!
- Join Date
- Jan 2008
- Posts
- 53
I think i understood
I guess he was trying to use the regular expressions with grep, i do not know what he wanted to do, but he solved, it would be usefull if 'debianhead' post the solution. I think is a little selfish from debianhead to post a problem then solve it and at the end save the answer for it self.


Reply With Quote

