Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
exact word match in unix
Name: vijay.goriya Date: August 8, 2007 at 00:42:55 Pacific OS: Windows CPU/Ram: 256 Product: Windows xp
Comment:
Hi, I am using the command `grep -n -w GE.. filename | cut -d: -f1` for finding the GE.. in the file,but it also selecting the unwanted words like GN..,G.. etc.pls tell me how to find only GE.. in the file.
Summary: In order to count words using unix tools other than wc, you'd probably have to write an awk or perl script. Without running tests, I can't be precise, but I don't think you can improve much on 'wc's ...
Summary: Hi, Can anyone help me find out how to highlilght certain words in unix. I know of a command "smso" and it usage also. But, i am unable to recall, that with a combination of some control characters,...
Summary: Hi janie_rose, It's not the exact answer I think. First let me explain the problems I faced. I was in a situation where I need to create a empty file by applying a single UNIX command. We ...