On Thu, 16 Jan 2003, [EMAIL PROTECTED] wrote:
> Is there a grep that is able to understand utf-16-[lb]e encoded
> files?  I have a bunch of LaTeX source files intended for Lambda, so
> they're stored as utf-16-le.  But when I try and grep the files,
> nothing happens because of all of the extra bytes in the file.
> 
> I've looked at the man page for grep and looked at that 'lv'
> package, but I couldn't make anything work.

The preferred way to use Unicode in Debian is to use UTF-8.  Try
something like:

  $ iconv -f UTF-16 -t UTF-8 my_utf_16_file > temporary_file

Then you can grep temporary_file.

-- 
Gaute Strokkenes                        http://www.srcf.ucam.org/~gs234/
What's the MATTER Sid?..  Is your BEVERAGE unsatisfactory?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to