Re: [R] fgrep with caret (^) meta-character in system() call

2011-10-04 Thread Ken
man awk? I've used awk for similar tasks (if I am reading the post correctly.) Google-Fu should turn up some useful examples. Also awk should be on your linux installation in some form or another. Regards, Ken Hutchison On Oct 4, 2554 BE, at 10:52 PM, "Tom D. Harray" wrote: > Hi there, >

[R] fgrep with caret (^) meta-character in system() call

2011-10-04 Thread Tom D. Harray
Hi there, I would like to use my linux system's fgrep to search for a text pattern in a file. Calling system with system("fgrep \"SearchPattern\" /path/to/the/textFile.txt") works in general, but I need to search for the search pattern at the beginning of the line. The corresponding she