![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Questions regarding GNOME, KDE, CDE, Open Office, etc go here. All UNIX and Linux Newbies Welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running UNIX commands remotely in Windows box from Unix box – avoid entering password | D.kalpana | UNIX for Dummies Questions & Answers | 1 | 04-20-2007 02:24 AM |
| How to use unix commands in awk | jerome Sukumar | Shell Programming and Scripting | 7 | 12-26-2006 04:15 AM |
| SQL Commands in Unix | sish78 | Shell Programming and Scripting | 6 | 05-25-2006 03:30 PM |
| Maingrame to UNIX sending UNIX commands | skammer | UNIX for Dummies Questions & Answers | 2 | 06-27-2002 09:19 AM |
| Unix Commands | smdakram | UNIX for Dummies Questions & Answers | 2 | 01-13-2002 04:12 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Unix commands
What is the unix command that will display the current UTC time, hours, and minutes only.
What is the unix command for sorting in descending order. What is the unix command for display the first 10 characters in a file. |
| Forum Sponsor | ||
|
|
|
||||
|
Charlton,
many of hte answers you seek can be found in teh man pages on any UNIX system... IF you read the sort man page, you will see that it shows. you the options for sorting... Here is an excerpt from the man page... the -r option reverses the sort order... -k n where n is a number sorts based upon the field number, normal delimiter is space or tab. Sort the contents of infile with the second field as the sort key: sort -k 2,2 infile Sort, in reverse order, the contents of infile1 and infile2, placing the output in outfile and using the first two characters of the second field as the sort key: sort -r -o outfile -k 2.1,2.2 infile1 infile2 Sort, in reverse order, the contents of infile1 and infile2, using the first non-blank character of the fourth field as the sort key: sort -r -k 4.1b,4.1b infile1 infile2
__________________
My brain is your brain |