Please support VectorLinux!

Author Topic: "sed" Program Problem  (Read 6154 times)

Pita

  • Vectorian
  • ****
  • Posts: 1325
"sed" Program Problem
« on: June 16, 2011, 07:34:37 pm »
Anyone knows about "sed"?

Well I have a little progam called Steak which just on a terminal will translate
from English to German and vice-versa. I have used it for a long time, however,
now in VL7 it will not work any longer.  And the problem seems to be the new
sed version 4.2.1.

If I enter a word for translation in VL7 I get:

steak milk
sed: file /usr/local/Steak/iso2txt line 3: unterminated `s' command
sed: file /usr/local/Steak/iso2txt line 3: unterminated `s' command

Please enter a word if you use this program.

The file iso2txt looks like this:
#!/usr/bin/sed -f

s/./ae/g
s/./Ae/g
s/./oe/g
s/./Oe/g
s/./ue/g
s/./Ue/g
s/./ss/g

If I copy the old version of sed-4.1.5 to VL7 the programm runs again.

Is there a way to adjust file iso2txt that 'steak' will run with the new sed version?

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: "sed" Program Problem
« Reply #1 on: June 16, 2011, 09:07:13 pm »
what version of steak are you running there?

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: "sed" Program Problem
« Reply #2 on: June 16, 2011, 09:37:26 pm »
Until you find your answer you can try Ding from the repositories.  Ding is a dictionary lookup program.  It comes with a German-English dictionary with about 185,000 entries.
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

Pita

  • Vectorian
  • ****
  • Posts: 1325
Re: "sed" Program Problem
« Reply #3 on: June 17, 2011, 01:22:20 am »
what version of steak are you running there?

It's version 1.7.3. I guess its not maintained anymore I guess the website does not open
and I can't find it with Google.

Pita

  • Vectorian
  • ****
  • Posts: 1325
Re: "sed" Program Problem
« Reply #4 on: June 17, 2011, 01:25:15 am »
Until you find your answer you can try Ding from the repositories.  Ding is a dictionary lookup program.  It comes with a German-English dictionary with about 185,000 entries.


I will check this out, thanks. Looks like a more modern version of steak.
The beauty of those programs is that they are fast since no need to open
a browser and then a website and then, and then......

Pita

  • Vectorian
  • ****
  • Posts: 1325
Re: "sed" Program Problem
« Reply #5 on: June 18, 2011, 12:05:52 am »
http://vectorlinux.osuosl.org/veclinux-7.0/source/testing/xap/ding cannot be found.

In the meantime I copied sed-4.1.5 of VL6 to /usr/local/sbin, changed
accordingly in the steak program sed to /usr/local/sbin/sed and the good
old steak tastes like freshly grilled. ;D

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: "sed" Program Problem
« Reply #6 on: June 20, 2011, 08:07:01 am »
Try http://vectorlinux.osuosl.org/veclinux-7.0/source/abs/xap/ding/

That's the location of the source fwiw. ding txz itself is in testing and can be installed via gslapt.
http://vectorlinux.osuosl.org/veclinux-7.0/testing/xap/ding-1.7-i586-1vl70.txz
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee