Linux Classes
Linux Classes
Share This With a Friend

sort command help

 sort - sort lines of text files
 

SYNOPSIS

 ../src/sort [OPTION]... [FILE]...
 

DESCRIPTION

 Write sorted concatenation of all FILE(s) to standard outュ
 put.
 
 +POS1 [-POS2]
 start a key at POS1, end it *before* POS2 (obsolesュ
 cent) field numbers and character offsets are numュ
 bered starting with zero (contrast with the -k
 option)
 
 -b ignore leading blanks in sort fields or keys
 
 -c check if given files already sorted, do not sort
 
 -d consider only [a-zA-Z0-9 ] characters in keys
 
 -f fold lower case to upper case characters in keys
 
 -g compare according to general numerical value, imply
 -b
 
 -i consider only [040円-0176円] characters in keys
 
 -k POS1[,POS2]
 start a key at POS1, end it *at* POS2 field numbers
 and character offsets are numbered starting with
 one (contrast with zero-based +POS form)
 
 -l sort according to current locale
 
 -m merge already sorted files, do not sort
 
 -M compare (unknown) < `JAN' < ... < `DEC', imply -b
 
 -n compare according to string numerical value, imply
 -b
 
 -o FILE
 write result on FILE instead of standard output
 
 -r reverse the result of comparisons
 
 -s stabilize sort by disabling last resort comparison
 
 -t SEP use SEParator instead of non- to whitespace transiュ
 tion
 
 use DIRECTORY for temporary files, not $TMPDIR or
 /tmp
 
 -u with -c, check for strict ordering; with -m, only
 output the first of an equal sequence
 
 -z end lines with 0 byte, not newline, for find
 -print0
 
 --help display this help and exit
 
 --version
 output version information and exit
 
 POS is F[.C][OPTS], where F is the field number and C the
 character position in the field, both counted from one
 with -k, from zero with the obsolescent form. OPTS is
 made up of one or more of Mbdfinr; this effectively disュ
 ables global -Mbdfinr settings for that key. If no key is
 given, use the entire line as the key. With no FILE, or
 when FILE is -, read standard input.
 

AUTHOR

 Written by Mike Haertel.
 

REPORTING BUGS

 Report bugs to <bug-textutils@gnu.org>.
 

COPYRIGHT

 Copyright ゥ 1999 Free Software Foundation, Inc.
 This is free software; see the source for copying condiュ
 tions. There is NO warranty; not even for MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE.
 

SEE ALSO

 The full documentation for sort is maintained as a Texinfo
 manual. If the info and sort programs are properly
 installed at your site, the command
 
 info sort
 
 should give you access to the complete manual.
 


Comments - most recent first
(Please feel free to answer questions posted by others!)

No comments yet

I welcome your comments. However... I am puzzled by many people who say "Please send me the Linux tutorial." This website *is* your Linux Tutorial! Read everything here, learn all you can, ask questions if you like. But don't ask me to send what you already have. :-)

NO SPAM! If you post garbage, it will be deleted, and you will be banned.
*Name:
Email:
Notify me about new comments on this page
Hide my email
*Text:




Copyright © by - Privacy Policy
All rights reserved - Redistribution is allowed only with permission.

Popular Linux Topics

Linux Intro
Linux Files
Linux Commands
Change Password
Copy Files
Linux Shell Basics

Linux Tutorial

Who is Doctor Bob?
What is Linux?
History of Unix
Operating Systems
What's Next?

Linux Basics

Living in a Shell
Root and Other Users
Virtual Consoles
Logoff and Shutdown
Choosing a Shell
The Command Prompt
Wildcards
Command History
Aliases
Redirection
Pipelines
Processes
Stopping a Program
Environment Variables
Help!

Linux Files

The Linux File System
Linux File Names
Linux Directories
Directory Terminology
Navigating the File System
Listing Linux Files
Displaying Linux Files
Copying and Renaming Files
Creating Files and Directories
Deleting Files and Directories
Linux Files - Wildcards
The Nine Deadly Keystrokes
Linux File Permissions
Changing File Permissions

Linux Commands

Important Linux Commands
Changing Your Password
Switching Users
Who is Logged In?
Date and Time
The Echo Command
Spell Checking
Printing Linux Files
Joining Files
Searching for Files
Comparing Files
Task Scheduling
Linking Files

Linux Editors

The Vi Editor
The Emacs Editor
The Pico Editor

Linux Data Manipulation

Slicing & Dicing
Heads or Tails?
Sorting Data
Eliminating Duplicates
Selecting Columns
Selecting Records
Search & Replace
Crunching Data
Finding Files
Pipe Fitting

Linux Shell Programming

Linux Shell Scripts
Executing a Script
Shell Script Variables
Shell Script Logic
Shell Script Looping
Shell Script Debugging

Perl Programming

Perl Basics
Perl Variables
Perl Arguments
Perl Logic
Perl Looping
Perl and Files
Perl Pattern Matching

Linux and Email

Sending Email
Reading Email
Other Mail Commands
Using Pine for Email
The Pine Inbox
Pine Email Basics
Pine Email Folders
Pine for Power Users

Compression and Encoding

Linux File Compression
Archiving With Tar
Compression With Gzip
Compress and Zcat
Zmore and Zless
Zip and Unzip
Encoding and Decoding
Encryption

Linux Does DOS

Accesing DOS Files
Accesing DOS Partitions
Running DOS Programs

Managing Linux

Updating Your Linux System
Installing Packages with RPM
Uninstalling Packages w/ RPM
Upgrading Packages with RPM
Querying Packages with RPM

AltStyle によって変換されたページ (->オリジナル) /