[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hebrew grep?
On Mon, Mar 12, 2001, guy keren wrote about "Re: Hebrew grep?":
>
> On Mon, 12 Mar 2001, Efraim Yawitz wrote:
>
> > How do you use grep with 8-bit characters?I tried writing a script with
> > a Hebrew string in it, but bash refused to execute it
>
> it refused? what error message did it give you -
> "i refuse to execute this jewish script!" ??
He was probably running bash, the "Bald Anti-Semite Hoodlum" ;)
But seriously, Efraim, you didn't give us enough information because both
solutions *should* work, and you didn't tell us exactly how they didn't,
or give us exact copies of the scripts to try.
If I had to guess, I'd say that what's wrong with your first script (with
the actual non-ascii Hebrew characters) is that you forgot a
#!/bin/sh
(or similar) line on top of it. I've seen this happen: the shell looks at
the beginning of the file, sees some non-ascii characters in there and
assumes that this is a machine-executable file, not a shell script, so
it exec()s it rather than reading it on its own. But exec()ing it won't work
unless it has a "#!/bin/sh" line on top.
--
Nadav Har'El | Monday, Mar 12 2001, 17 Adar 5761
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Cat rule #2: Bite the hand that won't
http://nadav.harel.org.il |feed you fast enough.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il