× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If you have a file myfile.txt consisting of the partial filenames, one per
line, and the files you're looking for from these partials reside in the
directory /foo/bar, then:

# remove the output file first if it already exists from a previous run
if [ -f output.txt ] then
rm output.txt
fi

# Try every partial and output the full name for every match of each
partial appending o output.txt
for i in `cat myfile.txt` do
ls /foo/bar | grep $i >> output.txt
done

That's about it.

On Fri, Oct 27, 2017 at 4:31 PM, Jack Woehr <jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx
wrote:

If it's IFS stuff you're looking for, it's really easier to use shell
commands.

Create in the ISF a text CSV from your database entries, as slim as
possible, and in a loop pipe it thru awk to get the field you want and
pipe the thus-extracted filename to find and grep to output the filepath
redirecting the whole thing to a text file.

Given the CSV, writing the shell this is about a 20 minute job (if all you
want is the found files' filepath).





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.