The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
largest field , awk , help jkl_jkl Shell Programming and Scripting 6 11-29-2008 06:21 PM
find largest file mohan705 Shell Programming and Scripting 15 07-04-2007 03:34 AM
Simple shell script to be written shsandeep Shell Programming and Scripting 6 07-17-2006 03:46 AM
Simple shell script to be written shsandeep UNIX for Dummies Questions & Answers 2 07-17-2006 02:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-26-2007
OFFSIHR OFFSIHR is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 23
what's the largest shell script you've ever written?

I've just written a test harness using ksh.

One of scripts weighed in at 1206 lines.

I came across Eric Raymonds 'Art of Unix programming' on line and he advises against excessively large scripts.

I am very interested to hear people's opinions on this and any experiences they have had.
  #2 (permalink)  
Old 04-26-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,123
The public version of swordfish is a bit over 2500 lines. My private version has multiple RNG's and statistical tools to evaluate their performance. It's over 4000 lines. When I write a very large script it will be a collection of modules and each module will be small enough to understand easily.

swordfish a password generator
  #3 (permalink)  
Old 04-26-2007
OFFSIHR OFFSIHR is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 23
It was very interesting for me to look at your code Perderabo. I also took a modular approach. Thank you
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0