How much bash to learn compared with Perl?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How much bash to learn compared with Perl?
# 1  
Old 12-12-2011
How much bash to learn compared with Perl?

Hello Everyone! I am somewhat new to Unix command line and don't have much experience to input on the matter so I wanted to gather some opinion's from people who have been down the road already.

Currently, I am going through a book by John Muster called "Unix Made Easy". I have gone through more than half the book and am very familiar with all basic commands, VI, various Shell syntax, variables, etc.

I am in the later part of the book where it starts getting into Expressions and Shell Scripting with AWK and SED. The book will cover these areas in a general skill set etc.

I have an interest in learning Perl scripting to gain more flexibility and use the power it has where basic shell scripting will fall short.

So with that said from a beginners point of view, how much time should I spend on Bash scripting versus just diving right into Perl Scripting etc? I would imagine with Perl you could program the same scripts as you can with Bash?

BTW.. I am specifying Bash shell because I am currently learning on Ubuntu Version 11.04. Thanks in advance for any input!!
# 2  
Old 12-12-2011
If you want to learn Perl, then go straight to Perl. It is quite big area to comprehend, so the sooner you start the better Smilie. Basic shell knowledge is useful, but not required to master Perl. Also learning too many things in a one shot might not be so good, as you might forget half of the things, and confuse the other half you didn't forget. I would focus on Perl if it is really what you want to script with Smilie.
# 3  
Old 12-12-2011
Perl is very powerful because of its regular expressions, and because it has so many add-on modules available.

But Bourne shells can do things simply which Perl would make quite complex, especially when you're using external programs. I've seen many perl scripts which were just line after line after line of system() and backticks, hardly perl scripts at all -- a barely-there crust of perl holding together pure shell code. Instead of using one shell, they use dozens of shells. If you learn to program in shell, you'll at least understand why this is a bad idea.

More to the point, perl isn't a shell. You can't login to perl. If you want to administer UNIX, you have to learn how to use a shell, and it might as well be some variety of bourne; too many things use it to avoid it, like cron, at, many system init and system configuration scripts, and your own logins.

Last edited by Corona688; 12-12-2011 at 06:53 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Learn bash shell scripting

I do not know shell scripting. But at work place, I have got an in and out shell scripting task. I just need to understand a very big script. Is there any tool in which I can place the script and it can tell me the meaning of the whole script? (3 Replies)
Discussion started by: lg123
3 Replies

2. What is on Your Mind?

Book to learn Perl

Hi guys, which book are you raccomand to start learn Perl from the ground ? (1 Reply)
Discussion started by: solaris_user
1 Replies

3. Shell Programming and Scripting

Validating uppercase/lowercase of user input with perl compared to unix folders

Hi, I need to copy files from a source directory to a destination directory in unix. I'm using the file::copy for the actual copy. The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Discussion started by: Furou
6 Replies

4. Shell Programming and Scripting

Should I learn bash scripting or is it going obsolete?

Hi folks, I'm a CS students enrolled in a sysadmin class where we've been covering bash scripting for the past few weeks. I have prior knowledge in java, c++, c#, python,and some scripting languages like asp.net w/c# and php. This bash stuff seems pretty neat and a bit different than what I am... (9 Replies)
Discussion started by: KalEl
9 Replies

5. UNIX for Dummies Questions & Answers

To learn PERL

Hi, Would like to learn PERL, can anyone let me know what are the useful sources... any links... good books for the beginners to start and practice? Many thanks. (3 Replies)
Discussion started by: venkatesht
3 Replies

6. Shell Programming and Scripting

Any book to learn perl scripting

Hi, Please suggest me any good book to learn pearl scripting. Thanks in advance !!!!:) (5 Replies)
Discussion started by: vkvishwakarma6
5 Replies

7. Shell Programming and Scripting

Looking to learn perl

What do you suggest for someone that doesn't have any programming experience and want to learn perl? (3 Replies)
Discussion started by: bbbngowc
3 Replies

8. Shell Programming and Scripting

How to learn Perl

Can anyone suggest homepage related to perl programming? Thank you. (11 Replies)
Discussion started by: lcfoo
11 Replies

9. Shell Programming and Scripting

Where do I start to learn PERL?

Hello, What is the best way to start learning PERL? Are there any "learn-it-yourself" websites? Beginner books? etc... Thanks, Barbara (3 Replies)
Discussion started by: blt123
3 Replies

10. Shell Programming and Scripting

Where can I learn Perl?

Can someone please post a link to site that teaches perl? (2 Replies)
Discussion started by: DISTURBED
2 Replies
Login or Register to Ask a Question