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 -->
#
6
(
permalink
)
05-22-2008
kartikkumar84@g
Registered User
Join Date: May 2008
Posts: 17
Quote:
var2=$(users | awk '{for(i=1; i<=NF; ++i) if(!a[$i]++) printf("%s ", $i)}')
Hi, Thank you, this works, is it possible to it without using
sed
or awk.
kartikkumar84@g
View Public Profile
Find all posts by kartikkumar84@g
Find kartikkumar84@g's past nominations received
Find kartikkumar84@g's present nominations given