Results 1 to 3 of 3
Thread: Grep Arguments
Apr 13, 2009, 10:24 #1
- Join Date
- Mar 2009
- 0 Post(s)
- 0 Thread(s)
I'm trying to use Ruby's grep function in a way similar to how I would use the grep command in Linux.
For instance, normally I would use the following shell command to find a line in a file based on a key word, then print the following three lines.
cat filename | grep -A3 keyword
If not grep in Ruby, perhaps rak can do this?