Content-type: text/html
Manpage of DISKCAT.SH
DISKCAT.SH
Section: User Commands (1)
Updated: March 21, 2005
Index
Return to Main Contents
NAME
diskcat.sh, Bash script, disk cataloger; use in conjuction with condiskcat
SYNOPSIS
diskcat.sh <dir under /mnt> <target filename>
EXAMPLES
diskcat.sh cdrom slackware_d1
diskcat.sh floppy backups_1
diskcat.sh zip zipdisk_5
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 is the second option, the text file
created there will be backups_1.dir.
The script will add /mnt/ to 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,
"backups", then under ~/diskcat/cdrom use "touch backups.dir".
Diskcat.sh will not append to existing .dir files, only overwrite. You can
change this by editing the script, if desired.
Use the program "condiskcat" to search the .dir files. The .dir files
can actually have any extension -- or none at all.
HISTORY
None; first release.
RESOURCES
Bourne Again Shell
BUGS
None yet reported or known. Suggestions and bug reports to Andy Alt
<andyqwerty@users.sourceforge.net> are welcome and appreciated.
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.
Index
- NAME
-
- SYNOPSIS
-
- EXAMPLES
-
- DESCRIPTION
-
- NOTES
-
- HISTORY
-
- RESOURCES
-
- BUGS
-
- FILES
-
- SEE ALSO
-
- AUTHOR
-
This document was created by
man2html,
using the manual pages.
Time: 02:42:57 GMT, March 22, 2005