3 ms·
Btw, this was after-the-fact testing. We had a list of about 800 or so unique UUIDS (there was no pattern anywhere between the UUIDS), where the UUIDs were pre
by indigodaddy 9y ago
Btw, this was after-the-fact testing. We had a list of about 800 or so unique UUIDS (there was no pattern anywhere between the UUIDS), where the UUIDs were present in some portion of the string for the filenames in working dir.
Example UUID in the list:
fd306bdfb115f1284655da6b06f826eb
There were thousands of other files in the directory that did not have any part/string of the filenames that matched the list. And using the echo $data technique found the matching files.
Is this still accidentally/happenstance matching here?
- indigodaddy 9y agoRealize now of course that 'grep -f uuidlist.txt' would have likely just done it, but kind of glad I've undertaken this exercise, even if it clearly shows my bash skills are subpar. I've got plenty to learn no doubt, and ny intent in posting this was to learn.
- maccam94 9y agoIt probably missed the first UUID in the list, because the search term would have been "echo $UUID". grep would correctly parse the rest of the newline-delimited list.