Re: Validating dictionary strings file
Re: Validating dictionary strings file
- Subject: Re: Validating dictionary strings file
- From: "Stephen J. Butler" <email@hidden>
- Date: Mon, 21 Nov 2011 00:34:43 -0600
On Sun, Nov 20, 2011 at 11:33 PM, Gideon King <email@hidden> wrote:
> Clearly there is some formatting error in the file but it is a rather large file and would take a very long time to manually go through and find the issue - is there some tool available that will tell me where to look in the file for the error?
I don't know that grep understands UTF-16, but this seems like a
problem that a well written regexp could solve.
grep -Pv '^((\s*)|(/\*.*\*/)|(.*;))\s*$' MyFile.strings
Adjust as needed. Maybe quickly convert the file to UTF-8 if grep
chokes on UTF-16.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden