[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Similar app for Disk Catalog?



On Sat, 2003-09-06 at 23:16, desiderata@softhome.net wrote:
> Hi,
> 
> There's this handly tool:
> http://www.rob.cybercomm.nl/diskcat/index.html
> I found for windows, is there an app similar to this? It basically scans
> cd's, directories for filenames/directories and catalogs them, it then
> saves the database into a file for viewing/searching using the tool. 

Something like this (using PostgreSQL)?

$ psql -d mydatabase -c "CREATE TABLE diskcat (directory text not null,
file text not null, primary key (directory, file))"

$ for f in `find mydirectory -type f`
  do
	echo -e "`dirname $f`\t`basename $f`"
  done | psql -d mydatabase -c "COPY diskcat FROM STDIN"

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Behold, I stand at the door, and knock; if any man 
      hear my voice, and open the door, I will come in to 
      him, and will sup with him, and he with me."       
                                   Revelation 3:20 



Reply to: