History: Search within files
Source of version: 6
Copy to clipboard
! Search within files If you want to ((search)) on files in the ((file galleries)), you must provide handlers to extract the text for the file's MIME type. The commands, such as ''strings'' or ''pdftotext'' must exist on your server. The type-command associations are defined in the __Admin->File Galleries__ page. || __MIME Type__ | __System command__ | __Ubuntu/Debian package with command__ application/ms-excel | xls2csv %1 | catdoc application/ms-powerpoint | catppt %1 | catdoc application/msword | catdoc %1 or strings %1| catdoc application/pdf | pstotext %1 or pdftotext %1 - | pstotext application/postscript | pstotext %1 | pstotext application/ps | pstotext %1 | pstotext application/rtf | catdoc %1 | catdoc application/sgml | col -b %1 or strings %1 | bsdmainutils application/vnd.ms-excel | xls2csv %1 | catdoc application/vnd.ms-powerpoint | catppt %1 | catdoc application/x-msexcel | xls2csv %1 | catdoc application/x-pdf | pstotext %1 | pstotext application/x-troff-man | man -l %1 | man-db text/enriched | col -b %1 or strings %1 | bsdmainutils text/html | elinks -dump -no-home %1 | elinks text/plain | col -b %1 or strings %1| bsdmainutils text/richtext | col -b %1 or strings %1| bsdmainutils text/sgml | col -b %1 or strings %1| bsdmainutils text/tab-separated-values | col -b %1 or strings %1| bsdmainutils || Several tools can be used to extract search strings; many Unix sites have "strings", which can detect things which appear to be text within files although without the accuracy of more specialized tools.