I want to sort a file(pudding) by the 1st column
but ignore all of the duplicates and output
the results to another file (prices).
For example,
sort +1 pudding > prices
the file looks like this..
Pudding Price
1 vanilla 1.05
2 strawberry 1.05
etc...
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!
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.