Content-type: text/html
diskcat.sh, Bash script, disk cataloger; use in conjunction with condiskcat
diskcat.sh <dir under /mnt> <target filename>
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.
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.
Andy Alt <andyqwerty@users.sourceforge.net>
Please email me if you'd like to help with this project.
Home Page: http://condiskcat.sourceforge.net/