The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Modifying a variable value
.
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
:
Modifying a variable value
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-14-2008
shamrock
Registered User
Join Date: Oct 2007
Location: USA
Posts: 753
var2=$(users | awk '{for(i=1; i<=NF; ++i) if(!a[$i]++) printf("%s ", $i)}')
-->
Code:
var2=$(users | awk '{for(i=1; i<=NF; ++i) if(!a[$i]++) printf("%s ", $i)}')
shamrock
View Public Profile
Find all posts by shamrock
Find shamrock's past nominations received
Find shamrock's present nominations given