The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Is awk vs cut which one is better
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Is awk vs cut which one is better
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-21-2007
blowtorch
Supporter
Join Date: Dec 2004
Location: Singapore
Posts: 2,350
It isn't working because with cut, you are cutting the first 10 columns. This causes spaces to be padded to the actual usernames in the /tmp/users1$$ file.
Use this instead:
last| cut -d" " -f1 |sort -u > /tmp/users1$$
blowtorch
View Public Profile
Find all posts by blowtorch
Find blowtorch's past nominations received
Find blowtorch's present nominations given