Conversion of Perl Script to Shell Script..


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Conversion of Perl Script to Shell Script..
# 29  
Old 01-05-2015
What's this WE crap. You are the only one shouting down Perl (and me) and perpetuating this mess.
And what's wrong with modules? That's boat loads of code that coders dont have to write, again. All languages have reusable libraries for cryin' out loud. Where's the fault in that? You want to strip a language of it's features and then call it useless?

I haven't reported any issues with anyone's code either. Where are you coming from? I don't claim to know it all. I learn something everyday here. And if I can help someone develop their own skill set, I will, whether you like it or not. If you check my posts you'll see that I do know some Bash, and some Perl and Python, and some C. It's no match for what you produce though, is it?

My points:
Bash has it's place, and so does Perl.

Chill out!

P.S. If you're going to quote me, punk, do it right...
Quote:
With respect to the shell's versatility, notice that Chubler_XL took the time and went to the trouble of converting the OPs script (post #19). Good job Chubler_XL. Whether it will handle just about any kind of data you throw at it remains to be seen.

Last edited by ongoto; 01-06-2015 at 10:42 AM.. Reason: P.S.
# 30  
Old 01-07-2015
Quote:
Originally Posted by ongoto
What's this WE crap. You are the only one shouting down Perl (and me) and perpetuating this mess.
I'm not shouting down Perl. I'm not sure why you perceive it that way. I explained before, I quite like Perl for some things, especially complicated regex replacements -- it sometimes outperforms my other favorite language, awk, quite a lot.

And yes, you can do lots of neat things with it. One of my favorite things about Perl is that it's a common and binary-safe scripting language. That's rare. You can use that to write file decoders which are robust enough to take seriously and will work the same everywhere. Trying to do that in shell would be a mass of egregious kludges.

Frozenbubble is a neat game, I've enjoyed it. I don't see how it's really relevant in a discussion of bash vs perl security issues, though.

Quote:
I haven't reported any issues with anyone's code either.
Merely insinuated. Well done.

I can't think of anything else to say here which isn't just a rehash of the last few pages. We're definitely getting off-topic. If the OP ever returns, he can PM me to reopen this.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Shell script ouput conversion

Hi All, I am trying to print all the packages info in solaris 11 using below script. #!/usr/bin/env bash pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' > /tmp/cp1 /usr/bin/nawk -F: ' {for (i=1; i<=NF; i++) {gsub (/^ *| *$/, "", $i) ... (5 Replies)
Discussion started by: sravani25
5 Replies

2. UNIX for Beginners Questions & Answers

powershell script to unix shell script conversion.

Here is a powershell script to use restful API to create ticket in our ticketing tool. Can anyone please convert it to a shell script sothat, I can run it in Unix servers, below is the code: $body = @{ Customer= ''test' Summary= 'test summary' Impact= '4-Minor/Localized' ... (2 Replies)
Discussion started by: pandeybhavesh18
2 Replies

3. Shell Programming and Scripting

Batch to shell script conversion

Hi All, I have a small tool which is currently configured in batch scripts only. But my need is to run it on Linux platform, so I have been trying to convert a batch script to shell script. below is the batch script: @echo off IF "%1"== "" GOTO ARGERR REM UPDATE THESE PROPERTIES TO... (2 Replies)
Discussion started by: sukhdip
2 Replies

4. Shell Programming and Scripting

Help required for Oracle database shutdown script conversion from shell to perl

Please tell me how to convert below program from shell script to perl. Same commands need to use in shutdown, just need program help for startup. export ORACLE_BASE=/home/oracle1 lsnrctl start lndb1 sqlplus '/ as sysdba' startup; (2 Replies)
Discussion started by: learnbash
2 Replies

5. Shell Programming and Scripting

Conversion batch shell script

while converting batch file to shell script ...dis command is ther i dunno how to change...can anyone knws how to change into shell script rm !(D:\temp\XX.txt) (3 Replies)
Discussion started by: monisha
3 Replies

6. Shell Programming and Scripting

shell or perl script needed for ldif file to text file conversion

This is the ldf file dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com objectClass: sdcsSubscriber objectClass: top postalCode: 29600 sdcsServiceLevel: 10 sdcsCustomerType: 14 givenName: Adelia sdcsBlackListAll: FALSE sdcsOwnerType: T-Mobile sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies

7. AIX

Need timestamp conversion shell script !!

Can anyone provide me with a ksh or bash script which will accept a timestamp (format is YYYY-MM-DD-HH24.Mi.Ss) and time offset (in hours). The output will be (timestamp passed - time offset passed deducted from it) in the same YYYY-MM-DD-HH24.Mi.Ss format. Basically I am trying to convert the... (1 Reply)
Discussion started by: shibajighosh
1 Replies

8. Shell Programming and Scripting

Encoding conversion in PERL script

I have oracle 9i database installed with UTF-8 Encoding. I want a perl script that converts unicode to utf8 before commiting in database and utf8 to unicode when retreiving from database For example : the word Ïntêrnatïônàlîzâtion has to be stored in database as Internationalization and when retreived... (6 Replies)
Discussion started by: vkca
6 Replies

9. Shell Programming and Scripting

Help me with file conversion [Shell Script]

Hello Group, I request your help with a shell script for filter an ascii file (this is small piece of the file): 09/24/2009,00:00,1.0268,1.0268,1.0249,1.0250,518 09/24/2009,01:00,1.0251,1.0261,1.0249,1.0259,424 09/24/2009,02:00,1.0258,1.0272,1.0258,1.0269,372... (3 Replies)
Discussion started by: csierra
3 Replies

10. Shell Programming and Scripting

Conversion of bash parsing script to perl?

I need help with a perl parsing script. I have some error logs on a windows machine that I need to parse from a text file, but I know nothing about perl. I usually run this bash script on my linux box and it does just what I need. How would I do the same thing with perl and port it to my windows... (2 Replies)
Discussion started by: cstovall
2 Replies
Login or Register to Ask a Question