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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-t utility and awk

Status
Not open for further replies.

bluebonnet

Technical User
Feb 26, 2003
10
US
How would I use the -t utility if am doing
a awk search for a specific word in a unix file?
awk -t: '/butter/ {print $0}'/etc/passwd

Is what I have to start.
 

I've never heard of the -t utility or the -t option for awk, which is what your example implies. We need more explanation of what you are trying to accomplish. CaKiwi
 
awk is not sort

# assuming 'butter' is the account name
nawk -F':' '$1 == "butter"' /etc/passwd vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Someone told me it could be done with the -t utility.
I didn't know what that means but the word butter
seems to come up without using it. Thanks for
the help!
 
Maybe she was talking about the tr utility.
If you know why let me know.
 
buttery tea? ;)

What is the question? vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top