v(sav|cat|...)

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 24 May 2025
Index Return to Main Contents

 

NAME

vsav - versioned file save
vcat - cat saved file version
vdiff - diff to saved file version
vgrep - grep pattern in saved file version
vlist - list all saved file versions
vls - list last saved file versions
vmore - more saved file version
vpurge - purge saved file versions
vrestore - restore saved file version

 

SYNOPSIS

edrc/bin/v(sav|cat|more|diff|grep|list|ls|purge|restore) [ -h ]

vsav file...

v(list|ls) file

v(cat|more|diff|purge|restore) file [ version ]

vgrep pattern file [ version ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

The vsav, vcat, vmore, vdiff, vgrep, vlist, vls, vpurge, and vrestore commands enable to save, print, compare, grep, list, purge and restore versions of a given file.

When saving a file, a new version is stored, if the most recent saved file is not identical to the current file.

When restoring a file, automatically the file to be overwritten is saved.

 

OPTIONS

-h
usage.

file
file to be saved, printed, restored, compared, purged or listed.

version
version of saved file to be restored, printed, purged or compared.

If no version is specified, the most recent saved version of the file is chosen.

pattern
regular expression pattern.

 

ENVIRONMENT

$VSAV_COMPRESS
Set to False if the saved file versions shall not be saved compressed.

When not set or set to True a saved file versions will be compressed using gzip(1).

 

EXIT STATUS

0
no error.

1
error.

4
usage printed.

 

FILES

edrc/var/vsav/files/
location where the saved versions of the files are stored.

edrc/var/vsav/files/<md5sum(/path/file)>-<version>[.gz]
saved version of file.

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), gzip(1), sav(1), vvi(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

vsav, vcat, vmore, vlist, vls, vrestore, vpurge, vgrep and vdiff was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2022 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
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 15:02:06 GMT, May 24, 2025