The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Pattern searching pattern in c files murthybptl Shell Programming and Scripting 6 11-17-2007 09:15 AM
searching pattern in another file and print cdfd123 Shell Programming and Scripting 2 10-26-2007 03:30 AM
searching for a pattern in a file and forwarding result to another ocelot UNIX for Advanced & Expert Users 7 01-22-2007 12:39 PM
Counting files in a directory that match a pattern dsravan Shell Programming and Scripting 31 07-24-2006 12:12 PM
pattern searching using C giannicello High Level Programming 1 04-16-2002 01:53 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-16-2008
ksr.test ksr.test is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 12
Exclamation searching one pattern in file and also counting

Hi,
everybody this is my pattern in a file

thomson, nicolas 5-3871
Wong, Fred 4-4123
Jones, Thomas 1-4122
Salazar, Richard 5-2522

first name and last names of people fallowed by Tele.

while i am searching for pattern first name begin with 'S' and last name begin with 'R' letter it's not working with my command like:
grep '^s*,+/t^r' patch.file
and also i want to search the lines where last name characters are 4.

please anybody help in this regard with explanation?

Last edited by ksr.test; 10-16-2008 at 01:43 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0