So I'm using a combination of
grep to filter out a list of file names from a plain text document.
Here's the command I run:
find /Volumes/Documents\ -\ Part\ 1/July 2009 -type f | grep -vf files.txt
In files.txt I have this:
/Volumes/Documents - Part 1/July 2009/vacation.pdf /Volumes/Documents - Part 1/July 2009/pie time!.jpg /Volumes/Documents - Part 1/July 2009/Coding/Unix/sample.sh /Volumes/Documents - Part 1/July 2009/trip-to-spain.pages
I want it to output any non-matching lines, but instead I get this:
grep: invalid character range
What is the cause of this? There is a lot more to files.txt, I just omitted it because it would be too long. I do have several unicode characters in there, too. Could that be causing any issues?
Mac OS X Yosemite, bash 3.2.57(1)-release, grep (BSD grep) 2.5.1-FreeBSD