Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: sed ?



--------------------------------------------------------
tlug note from Jim Schweizer <schweiz@example.com>
--------------------------------------------------------
Hi all,

On 23-Apr-97 Stephen J. Turnbull wrote:
>    Jim> jim:~/bin$ cat gres
>
>Hmmmm...  where's your magic shell interpreter thingie?  Try
inserting 
>
>#!/bin/sh

I tried that and (as you say) no joy. I tried running gres from
both bash and csh - no joy. Tried changing #!/bin/sh to
#!/bin/csh and got:

if: Expression Syntax.

Tried changing A="'echo | tr '\012' '\001' '" to
 
A="`echo | tr '\012' '\001'`" with 

sed -e "s^Apattern^Areplacement^A" $file 

and ran it under both bash and csh with and without the magic
shell interpreter thingie- again no joy. (Strange, XFMail is
showing ' and ` as the same?)

>It's not sed that's different, it's the shell.  Our Suns run
>csh by preference, maybe this is a csh-ism.

Oh well, on to chapter 4...

Thanks,

Jim S.

----------------------------------------------
Sent by: Jim Schweizer <schweiz@example.com>
On: 23-Apr-97 at: 17:11:28 JST
http://www1.harenet.or.jp/~schweiz/
You cannot achieve the impossible without attempting the absurd.
----------------------------------------------
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links