diffmk man page on Tru64

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
Tru64 logo
[printable version]

diffmk(1)							     diffmk(1)

NAME
       diffmk - Marks differences between files

SYNOPSIS
       diffmk [-b] [-ab'mark'] [-ae'mark'] [-cb'mark'] [-ce'mark'] [-db'mark']
       [-de'mark'] file1 file2

       The diffmk command compares two versions of a file and  creates	a  new
       file that marks the differences.

OPTIONS
       Uses  mark  to  mark  where added lines begin.  Uses mark to mark where
       added lines end.	 Ignores differences that are only changes in tabs  or
       spaces  on  a line.  Uses mark to mark where changed lines begin.  Uses
       mark to mark where changed lines end.  Uses mark to mark where  deleted
       lines begin.  Uses mark to mark where deleted lines end.

DESCRIPTION
       The file1 and file2 variables are the old and new versions of the file,
       respectively.  The diffmk command compares them and writes a  new  ver‐
       sion to standard output, which can be redirected to a file. This output
       contains the lines of file2 marked  with	 nroff	change	mark  requests
       (.mc),  or with the marks you specify with the -ab, -ae, -cb, -ce, -db,
       and -de options.

       When output containing requests is formatted  with  nroff,  changed  or
       inserted	 lines are marked by a | (vertical bar) at the right margin of
       each line. An * (asterisk) indicates that a line was deleted.

       If the DIFFMARK environment variable is defined,	 it  names  a  command
       string  that  diffmk uses to compare the files.	(Normally, diffmk uses
       the diff command.)  For example, you might set DIFFMARK to diff	-h  in
       order to better handle extremely large files.

EXAMPLES
       To  mark	 the  differences  between two versions of a text file, enter:
       diffmk -ab'>I:' -ae'<I' -cb'>C' -ce'<C' -db'>D' -de'<D' \
	       chap1.old chap1 >chap1.diffs

	      This causes diffmk to create a copy of chap1 called chap1.diffs,
	      showing  differences  between chap1.old and chap1.  Additions of
	      one or more lines are marked with >I and <I, changed  lines  are
	      marked  with >C and <C, and deletions are marked with >D and <D.
	      To mark differences with nroff requests, enter: diffmk chap1.old
	      chap1 > chap1.nroff

	      This  produces  a	 copy  of  chap1 called chap1.nroff containing
	      nroff change mark requests to identify text that was  added  to,
	      changed,	or  deleted  from  chap1.old.	To use different nroff
	      marking requests and  ignore  changes  in	 white	space,	enter:
	      diffmk  -b  -cb'.mc  %'  chap1.old  chap1	 > chap1.nroff

	      This  imbeds  commands  that mark changes with % (percent sign),
	      additions with | (the default, because no -a  option  is	speci‐
	      fied),  and  deletions  with  * (the default).  It does not mark
	      changes that only involve a different number of spaces  or  tabs
	      between words (-b).

SEE ALSO
       Commands:  diff(1), nroff(1)

								     diffmk(1)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net