![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to sort, and count unique data all at once? | amatuer_lee_3 | Shell Programming and Scripting | 16 | 04-14-2009 11:22 PM |
| put the contents of this file into a variable with multiple lines | Nomaad | Shell Programming and Scripting | 3 | 04-23-2008 01:39 AM |
| Sort and Unique in Perl | deepakwins | Shell Programming and Scripting | 20 | 02-11-2008 09:25 PM |
| Save contents of a Variable | carl_vieyra | UNIX for Dummies Questions & Answers | 1 | 02-27-2007 12:27 AM |
| adding contents of a variable to a command | gammarays | Shell Programming and Scripting | 2 | 02-08-2005 01:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
unique sort contents of a variable
Hi ,
I have #echo $var1 #hdisk2 hdisk3 hdisk0 hdisk2 Now I need to remove duplicate entries from this . ie. after sorting it should only have hdisk2 hdisk3 hdisk0 . I can have these values in a array as well . I understand we can use sort -u to remove the duplicates in a coloumn but here it is row and hence I am stuck ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|