![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printing all combinations : Awk | jkl_jkl | Shell Programming and Scripting | 7 | 05-28-2008 09:17 AM |
| All Shortcut key combinations | --crimson-- | UNIX for Advanced & Expert Users | 0 | 07-10-2006 12:20 AM |
| Combinations | Khoomfire | UNIX for Advanced & Expert Users | 4 | 06-06-2006 03:32 AM |
| Awk execution with more combinations.. | mitte_dino | Shell Programming and Scripting | 1 | 09-28-2005 10:53 AM |
| Need Help with Awd/sort commands | flarebel | UNIX for Dummies Questions & Answers | 5 | 12-06-2003 04:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to use cat and sort commands combinations?
Hi,
I need to get five names as input and sort it. It has to be done in the command level only. It should not read from any files. I tried with many combinations. I didnt get it. I can able to get the input using cat > sample jik njvi abifj ...like this and i dont know how to sort it here. Many Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
once file <sample> is ready
use the command sort Is that what you are looking for ? |
|
#3
|
|||
|
|||
|
Quote:
How do you want to sort them...alphabetically or its inverse? Code:
cat <<EOF | sort -k1,1 jik njvi abifj yada_yada blah_blah EOF |
|
#4
|
|||
|
|||
|
Thanks.Exactly i want this only.
Quote:
Exactly i want this only..Many Thanks to you |
|
#5
|
|||
|
|||
|
Thanks
Quote:
I have gonethrough your reply. But i want exactly the Shamrock codings which he is given. cat <<EOF | sort -k1,1 jik njvi abifj yada_yada blah_blah EOF |
|||
| Google The UNIX and Linux Forums |