I have a linux filter to extract all the lines from an xcode project containing localized lines and create a sorted list of unique entries. The filter works fine and is shown below.
grep NSLocalized *.m | perl -pe 's/.*NSLocalizedString\((.+?)\,.*/$1/' | sort | uniq
The result is a list of lines similar to
@"string1" @"string2" etc
Now I need to define entries that do not exist in another text file. So imagine that I have a text file containing:
@"string1" @"string3" etc
The result will be @"string2" because it is not in the file
For the argument, the file is named list.txt
What do I need to add to my filter? I'm sure I can do it with grep, but my brain will not work!
Roger source share