Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick search question

Status
Not open for further replies.

wraheem

MIS
Jul 19, 2001
62
US
I have a quick (and probably simple) question. I have a script that uses a simple /FullName/ && print; statement. The problem is that the file it is searching from has multiple lines that have AltFullName as well as FullName and it prints both. I don't want the AltFullNames, just the FullNames.

I tried doing /[^Alt]FullNames/ && print; but it didn't print any FullNames!

Thanks for any help!
 
Is there a space in front of FullName? If so use that as part of your match

Just a thought
Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ...
 
No it is setup like:

Name: Bill Bozo
First: William
Fullname: Bill Bozo
AltFullName: William Bozo
 
/^FullName/m && print;

Obviously your print is more pseudo than anything else so it's hard to give a clear answer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top