Home » Questions » Computers [ Ask a new question ]

locate/updatedb like tool (Linux CLI) for CDs/DVDs

locate/updatedb like tool (Linux CLI) for CDs/DVDs

I am looking for a Linux tool to search for files on offline media like CDs and DVDs. I know there are a lot of "cataloging" tools, but those are all graphical and I want a command line program. Ideal would be if works just like the well-known locate/updatedb bundle, with the only exception that the db update would have to be interactive, so that you can enter some id or description to a media, which will be printed by the locate-like tool, e.g.

Asked by: Guest | Views: 176
Total answers/comments: 1
Guest [Entry]

"I use a shell script along the lines of:

#!/bin/bash
find $1 -type f -exec xmler.sh {} + > out.xml

Where xmler creates:

<file>
<filename>someFilename.txt</filename>
<md5sum>xxxxxxxxxxxx</md5sum>
<date_modified>....</date_modified>
</file>

The file entries get wrapped in

<catalogue type=""dvd"" diskid=""someid""></catalogue>

and so on, into an XML document. I can then write tools to create HTML catalogues and indexes, search tools and more.

A bit hackish, but works for me."