sparse

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

 

NAME

sparse - filter to identify sparse files

 

SYNOPSIS

edrc/lib/sparse [ -h ]

sparse [ -v ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

filter to identify sparse files.

The file list received thru stdin is searched for sparse files and the file names of all identified sparse files, or all non-sparse file names ( -v ), are printed to stdout. This enables to use the output directly for further processing thru a pipe for instance.

 

OPTIONS

-h
print usage message.

-v
print all non-sparse files. This is the inverse output, as if no option is specified.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
could not stat all files in provided file list.

4
usage message printed.

 

FILES

-

 

EXAMPLES

1) Find sparse files in the current directory

find . -print | sparse

2) Copy all sparse files

find . -print | sparse | cpio -pdvm --sparse /destination

3) Copy all non-sparse files

find . -print | sparse -v | cpio -pdvm /destination

 

SEE ALSO

edrcintro(1) cpio(1), directories(3), find(1), stat(3), http://en.wikipedia.org/wiki/Sparse_file

 

NOTES

-

 

BUGS

-

 

AUTHOR

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

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