Content-type: text/html Manpage of DISKCAT.SH

DISKCAT.SH

Section: User Commands (1)
Updated: April 25, 2005
Index

 

NAME

diskcat.sh, Bash script, disk cataloger; use in conjunction with condiskcat

 

SYNOPSIS

diskcat.sh <dir under /mnt> <target filename>

 

EXAMPLES

diskcat.sh cdrom slackware_d1.txt
diskcat.sh floppy backups_1.txt
diskcat.sh zip zipdisk_5.dir

 

DESCRIPTION

This script simply redirects the output of ls -alR to a text file. The destination directory and filename is determined by the two command line arguments. For instance, if floppy is the first option, the file will be sent to ~/diskcat/floppy. If backups_1.txt is the second option, the text file created there will be backups_1.txt.

The script will add /mnt/ in front of the first argument, so using cdrom as the first argument, ls -alR will read from /mnt/cdrom. Edit the script as needed if you'd like to catalog another mountpoint or partition.

 

NOTES

As per the rules in Linux, If you are running diskcat.sh as a non-root user, the output will only show what would normally be shown to a non-root user. If you want to be assured of a complete listing, use sudo or run as root. Keep in mind that any directories or text files this program creates or generates will be owned by root if run using sudo. You may create the diskcat directory and subdirectories prior to running sudo. For instance, if you know you're going to catalog a cdrom labeled "backups01", then under ~/diskcat/cdrom use "touch backups.dir" and then as a superuser run "diskcat.sh cdrom backups01.dir" (your choice of extension).


Diskcat.sh will not append to existing catalog files, only overwrite. You can change this by editing the script, if desired.


Use the program "condiskcat" to search the catalog files. The catalog files can actually have any extension -- or none at all.

 

HISTORY

This script was first released with condiskcat-0.93b on March 23, 2005

 

RESOURCES

Bourn Again Shell

 

BUGS

None yet reported or known. Suggestions and bug reports to Andy Alt <andyqwerty@users.sourceforge.net> are welcome and appreciated. But reports can also be submitted through the project page on Sourceforge.net (see below).

 

FILES

condiskcat
diskcat.sh
$HOME/diskcat
$HOME/diskcat/cdrom (example,optional)
$HOME/diskcat/zip (example,optional)

 

SEE ALSO

condiskcat(1) ls(1) mount(8) umount(8)

 

AUTHOR

Andy Alt <andyqwerty@users.sourceforge.net>
Please email me if you'd like to help with this project. Home Page: http://condiskcat.sourceforge.net/


 

Index

NAME
SYNOPSIS
EXAMPLES
DESCRIPTION
NOTES
HISTORY
RESOURCES
BUGS
FILES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 21:32:05 GMT, April 25, 2005