Computing.Net > Forums > Unix > i need help with unix shell script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

i need help with unix shell script

Reply to Message Icon

Name: limor
Date: October 28, 2008 at 07:01:54 Pacific
OS: unix
CPU/Ram: *
Product: shell
Comment:

i need to write some scripts: 1- that get dir from arg and save to file. 2 - get 2 dirs from args, compare, report if equal. 3- Compare logged-in users to users list in file -> report “problems”



Sponsored Link
Ads by Google

Response Number 1
Name: dpminusa
Date: November 2, 2008 at 14:33:04 Pacific
Reply:

I use Perl for all of these types of requirements. The core Perl libraries are usually on all Linux and UNIX system because part of the standard OS uses Perl.

The scripts to do what you describe are very short in Perl. You can execute Bourne script commands from Perl as well, if you are shell script literate already.

Perl has syntax compatibility with many systems. So you can probably code like you are used to or close to it.

A good starting point is the site perldoc.perl.org. There are intros, tutorials, and language reference links there.

Type perldoc perl on your system to get some basic help.

If you want to develop on Windows and deploy on Linux/UNIX the best site is www.activestate.com. Download the Free Komodo editor and use it. A Great feature for developers new to Perl is the background interpreter checking. If is like an advanced intellisense feature. I use Komodo daily.

Komodo's help also has a very comprehensive Perl documentation interface. If you are a developer in other languages, Komodo supports dozens of other popular languages as well.

They are a great group of open source oriented people in Vancouver, BC.

No, I do not work for them. I just appreciate their efforts.

Web Developer


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: i need help with unix shell script

I need help with my skript. www.computing.net/answers/unix/i-need-help-with-my-skript/5903.html

Unix shell script and Oracle data www.computing.net/answers/unix/unix-shell-script-and-oracle-data/5298.html

checking date in Shell script www.computing.net/answers/unix/checking-date-in-shell-script/5035.html