Introduction

Introduction

The commands in this section operate on the contents of files, usually text files. In most cases they are capable of including, or excluding, patterns, as specified by regular expressions. See the chapter on "Finding Stuff" for more information about regular expressions.

graphics/tip.gif

The dash character, "-", is usually used to specify standard input as one of the input files.

 

comm

Compare 2 sorted files. (This command outputs common lines.)

cmp

Compare 2 files, usually binaries.

diff

Show the difference between 2 files.

diff3

Show the differences between 3 files.

sdiff

Merge 2 files.

 



Linux Desk Reference
Linux Desk Reference (2nd Edition)
ISBN: 0130619892
EAN: 2147483647
Year: 2000
Pages: 174
Authors: Scott Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net