VectorLinux
October 24, 2014, 03:00:14 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: "sed" Program Problem  (Read 5619 times)
Pita
Vectorian
****
Posts: 1311


« on: June 16, 2011, 06: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?
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #1 on: June 16, 2011, 08:07:13 pm »

what version of steak are you running there?
Logged
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #2 on: June 16, 2011, 08: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.
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Pita
Vectorian
****
Posts: 1311


« Reply #3 on: June 17, 2011, 12: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.
Logged
Pita
Vectorian
****
Posts: 1311


« Reply #4 on: June 17, 2011, 12: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......
Logged
Pita
Vectorian
****
Posts: 1311


« Reply #5 on: June 17, 2011, 11:05:52 pm »

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. Grin
Logged
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #6 on: June 20, 2011, 07: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
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!