converting perl to sed/ C shell ?

S

surfunbear

I had some resistance at work because our support team uses sed, but I
wrote some perl code. I have been trying to argue my case and win them
over, not sure if they are interested in learning perl or bettering
themselves technically in that regard.

If I get stuck, I am wondering if there is some transaltion utilities
to translate perl pattern matching expressions to sed expressions where
possible as well as maybe translating simple perl
scripts to c shell. That way I could develop what I need to in perl in
such a way as to convert it to sed/c shell when I am done. Maybe I
could convince them that the resulting generated srcipts are harder to
work with than the original perl, something like that.
 
C

Chris Mattern

I had some resistance at work because our support team uses sed, but I
wrote some perl code. I have been trying to argue my case and win them
over, not sure if they are interested in learning perl or bettering
themselves technically in that regard.

If I get stuck, I am wondering if there is some transaltion utilities
to translate perl pattern matching expressions to sed expressions where
possible as well as maybe translating simple perl
scripts to c shell. That way I could develop what I need to in perl in
such a way as to convert it to sed/c shell when I am done. Maybe I
could convince them that the resulting generated srcipts are harder to
work with than the original perl, something like that.

Scripting in C Shell? Nooooo.....

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

If you have a commercial UNIX, you almost certainly have ksh. If you
have a free UNIX/UNIX-clone, you almost certainly have bash. Use them.

In any case, you can't automatically translate from perl to a shell
+ sed, because perl is a superset of that. You can do too many things
in perl you can't do in a shell + sed.
--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top