Computing.Net > Forums > Unix > grep ?

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.

grep ?

Reply to Message Icon

Name: mgonzalo
Date: September 18, 2006 at 02:07:35 Pacific
OS: SunOS isis 5.8
CPU/Ram: Ultra-250
Product: Generic_108528-15 sun4u s
Comment:

R 041102133150Z 0118 unknown /C=ES/ST=Mad/O=xxxxx
V 041102141444Z 0119 unknown /C=ES/ST=Mad/O=xxxxx
V 041103094532Z 011A unknown /C=ES/ST=Mae/O=xxxxx
V 041104125658Z 011C unknown /C=ES/ST=Maf/O=xxxxx
R 041105094618Z 011D unknown /C=ES/ST=Mag/O=xxxxx
V 041105171516Z 011E unknown /C=ES/ST=Mag/O=xxxxx

I have a listing of this type and i would want to obtain alone those that have V and they are 04 among these 2 characters there is a tabulator

"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones



Sponsored Link
Ads by Google

Response Number 1
Name: Godgory
Date: September 20, 2006 at 05:41:50 Pacific
Reply:

I suggest you learn using "regular expressions". They are pretty powerful.
Alex.


0

Response Number 2
Name: lankrypt0
Date: October 25, 2006 at 10:51:48 Pacific
Reply:

Unless I am missing something, this is pretty easy.

grep "V 04" filename.txt


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: grep ?

can I use grep command?? www.computing.net/answers/unix/can-i-use-grep-command/7156.html

grep scripts www.computing.net/answers/unix/grep-scripts/7112.html

need help with grep.... www.computing.net/answers/unix/need-help-with-grep/7366.html