Re:Show HN: FSQL – Search through your file system with SQL-...
by taeric on Monday May 15, 2017 @03:47PM
(#14344542)
Out of curiosity, I'm interested in how folks would do the "in this not that" folder query. At a gut shot, I'd assume that diff would be used. I'm about to dig through the find man page to see if it has something directly to help.
[ Parent
| on HN ]
Re:Show HN: FSQL – Search through your file system with SQL-...
by keithlfrost on Monday May 15, 2017 @04:44PM
(#14344941)
One tool for this is the 'comm' utility: given two files containing sorted lines, it can output one or more of (1) lines only in file 1, (2) lines only in file 2, and (3) lines common to both files.