![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Help needed with Sort and uniq data | asirohi | Shell Programming and Scripting | 4 | 08-17-2009 09:25 PM |
| sort command help needed. | salman4u | Shell Programming and Scripting | 6 | 03-18-2009 03:22 AM |
| Help needed to sort file | inditopgun | Shell Programming and Scripting | 2 | 09-27-2007 07:40 PM |
| help needed with sort. pipe and popen() | the_learner | UNIX for Dummies Questions & Answers | 7 | 05-21-2007 08:24 PM |
| Sort - Help Needed | Andysundar | UNIX for Dummies Questions & Answers | 4 | 01-23-2006 02:55 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help needed to sort data
Hello All,
Today i have been asking lots of question, hope to become good in scripting soon with all the wonderful advices i get. The question is i want to sort data a get uniq string from it. The code i am using to generate the output is:- Code:
check_sun() {
for i in $SUN_PLATFORM
do
$ECHO "The path is: "$i
$LS $i | $GREP .su | $AWK -F"_" '{print $1, path}' path="${i}"
done
}
The path is: /vol/local_images/spins/7.1/CQ/sun5/ShareableEntities base.sun5 /vol/local_images/spins/7.1/CQ/sun5/ShareableEntities basement.sun5 /vol/local_images/spins/7.1/CQ/sun5/ShareableEntities The path is: /vol/local_images/spins/7.1/CC/sun5/ShareableEntities base.sun5 /vol/local_images/spins/7.1/CC/sun5/ShareableEntities basement.sun5 /vol/local_images/spins/7.1/CC/sun5/ShareableEntities The output i want is the unique out of the above output, for example:- base.sun5 /vol/local_images/spins/7.1/CQ/sun5/ShareableEntities /vol/local_images/spins/7.1/CC/sun5/ShareableEntities basement.sun5 /vol/local_images/spins/7.1/CQ/sun5/ShareableEntities /vol/local_images/spins/7.1/CC/sun5/ShareableEntities Last edited by asirohi; 08-24-2009 at 02:57 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|