Sponsored Content
Full Discussion: Unix commands
Special Forums UNIX Desktop Questions & Answers Unix commands Post 44544 by Kelam_Magnus on Monday 8th of December 2003 12:01:21 PM
Old 12-08-2003
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Commands

Where can I get a list of basic commands ? I want to get up to speed as soon as possible ? thanks..... (4 Replies)
Discussion started by: drukkie
4 Replies

2. UNIX for Dummies Questions & Answers

Maingrame to UNIX sending UNIX commands

I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies

3. UNIX for Dummies Questions & Answers

Unix Commands?

I would be happy to streamline some of the commands I am trying to learn with easy to remember terms, like dir for ls -l. I am wondering if you script certain commands for every time you start-up your system, can use those aliases there? If so, would that prove a problem for administrators who... (2 Replies)
Discussion started by: wmosley2
2 Replies

4. HP-UX

Unix Commands

HP 9000/800 Server running HP-UX UNIX Server, users are connected via LAN and dialup connection. Need help to write SHELL SCRIPT or UNIX Commands which would perform the following: -ping IP address of all login/connected users to our server -send customized text message to all the login... (1 Reply)
Discussion started by: Moinul Haque
1 Replies

5. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

6. UNIX for Advanced & Expert Users

Unix Commands

hi experts, Where will I be able to find the whole man of unix commands in Web(the official documentation)? How many commands are there in total in Unix? (3 Replies)
Discussion started by: Sreejith_VK
3 Replies

7. UNIX for Dummies Questions & Answers

unix commands...

i want to know how to do a few things using unix commands. firstly say I have a .txt file that contains random lines like Hello Goodbye I'm tired 5 74 using the grep command how can I get a list of lines that contain ONLY digits? also using pipes to combine ls and grep commands how... (5 Replies)
Discussion started by: ez45
5 Replies

8. UNIX for Dummies Questions & Answers

ALL unix commands

Hello Folks Where can I find all the unix commands with explanations , on the internet. I am searching but most of the sites are listing a few of the important ones. PLease guide through thanks (4 Replies)
Discussion started by: supercops
4 Replies

9. UNIX for Dummies Questions & Answers

$ commands in unix

What are the various commands which use $ in unix and what do each of these indicate? eg: echo $? returns the success status of the previous commands..similarly $$ returns some numeric value..wat exactly are these? From where can a download a document which can help me getting more details about... (2 Replies)
Discussion started by: DDS
2 Replies

10. UNIX for Dummies Questions & Answers

Unix Commands help

Having trouble doing the following things, I know it has something to do with using metacharacters but I'm not able to get it working correctly. I need a command to get a long directory listing of all the files that have: exactly two characters following the letters zot. all files that... (1 Reply)
Discussion started by: lakers34kb
1 Replies
TIFFUTIL(1)						    BSD General Commands Manual 					       TIFFUTIL(1)

NAME
tiffutil - manipulates tiff files SYNOPSIS
tiffutil <option> [<arguments>] [-out <outfile>] DESCRIPTION
tiffutil lets you manipulate TIFF files. The list of options (also available by running the program without any options) follows: tiffutil -none infile [-out outfile] -lzw infile [-out outfile] -packbits infile [-out outfile] -cat infile1 [infile2 ...] [-out outfile] -catnosizecheck infile1 [infile2 ...] [-out outfile] -cathidpicheck infile1 [infile2 ...] [-out outfile] -extract num infile [-out outfile] -info infile -verboseinfo infile -dump infile -none, -lzw, and -packbits options specify the compression format to be applied to the images in the TIFF file. -none specifies no compres- sion; -packbits specifies PackBits compression; -lzw specifies standard Lempel-Ziv & Welch compression (no prediction scheme). -cat allows combining multiple TIFF files into one. The images are copied without any change in tag values. If the real sizes (pixel size divided by dpi) of the images being combined are not the same, a warning will be generated. This makes sure that NSImage can successfully choose the right size image out of the generated TIFF file. Use -catnosizecheck to bypass the size check. -cathidpicheck can be used to write an output file conforming to Apple's guidelines for resolution independent bitmap images, and will gener- ate warnings if the supplied images do not have the recommended size relationship. For best results, ensure that the larger file has a file- name of the form <basename>@2x.png. -extract allows extracting an individual image from a TIFF file; specify num = 0 for the first image in the file. -info prints information about TIFF images. -verboseinfo is the same, except most of the tables are displayed in full. -dump simply lists all of the tags in the file without trying to interpret them; it is handy when trying to figure out why a TIFF file won't load or display prop- erly. For options which write images out, the output goes to "out.tiff" unless an output file name is specified after a -out keyword. This keyword and the file must be the last items on the command line. -info, -verboseinfo, and -dump write their output to the standard output. If there are multiple images in a TIFF file the specified operation will be performed on all of them. SECURITY NOTE: This version of tiffutil SHOULD NOT be used with untrusted files. CREDITS
Parts of tiffutil were based on the freely distributable "tiffcp" and "tiffinfo" programs written by Sam Leffler and made available with v3.0 of his excellent TIFF library. The TIFF library and the tiffcp and tiffinfo programs are: Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler Copyright (c) 1991, 1992 Silicon Graphics, Inc. macOS September 2, 2010 macOS
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy