revision

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 17 January 2010
Index Return to Main Contents

 

NAME

revision - print revision of a file examined from the file header

 

SYNOPSIS

edrc/bin/revision [ selection ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

Print revision of a selection of files in the current working directory examined from the file header.

This helps to get a quick overview of the revision and the last revision history entry of files located in a certain directory.

The file header must have the (very simple to remember) format:

[##] DD.MM.YYYY INi Revision history text

Binary files are not scanned for file header patterns.

 

OPTIONS

selection

selection as known from the ls command to select a subset of files from the current working directory.

 

EXAMPLES

1) Shellscript header

#!/bin/sh
#
# busy - keep the line open
#
# [00] 28.02.2001 CWa   Initial Version
# [01] 02.03.2001 CWa   chg: comment text
#

2) Configuration file header

#
# /etc/hosts - internet host revisions
#
# [00] 28.02.2001 CWa   Initial Version
# [01] 08.08.2001 CWa   + timehost 
#
#
127.0.0.1       localhost
192.168.75.1    rh7mzv7t001
102.168.75.9    timehost

3) Configuration file header

;
; /etc/samba/smb.conf - samba configuration file
;
; [00] 28.02.2001 CWa   Initial Version
; [01] 04.04.2001 CWa   chg: workgroup AGROUP -> MYGROUP
;
;
[global]
    workgroup = MYGROUP
    server string = %h

4) SQL script header

--
-- TopTen.sql - Reports lists DB statistics
--
-- [00] 31.1.2003 CBi   Initial
-- [01] 01.5.2003 CWa   fix: total_bytes -> total_kbytes
--
select
    a.tablespace_revision,
    a.bytes/1024 as total_kbytes,

5) Manpage file header

.\"
.\" revision.1 - manpage for revision 
.\"
.\" [00] 30.11.2003 CWa Initial Version
.\" [01] 03.01.2003 CWa  ++
.\" [02] 05.01.2003 CWa  ++
.\"

 

SEE ALSO

edrcintro(1), name(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

revision was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net . 

 

COPYRIGHT

Copyright © 2010 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 16:54:14 GMT, August 28, 2024