Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Wicked Cool Shell Scripts

Posted by timothy on Wed Mar 10, 2004 02:00 PM
from the words-that-do-stuff dept.
norburym writes with a review of Wicked Cool Shell Scripts - 101 Scripts for Linux, Mac OS X, and UNIX Systems. "This incredibly fun book (really!), written by Dave Taylor, a veteran UNIX, Solaris and Mac OS X author, is chock full of 101 scripts to customize the UNIX (Bourne) shell." Read on for the rest.
Wicked Cool Shell Scripts - 101 Scripts for Linux, Mac OS X, and UNIX Systems
author Dave Taylor
pages 368
publisher No Starch Press
rating 10
reviewer Mary Norbury-Glaser
ISBN 1593270127
summary 101 Scripts for Linux, Mac OS X, and UNIX Systems

Chapters are divided into an array of topics sure to catch the attention of any UNIX based system user: The Missing Code Library, Improving on User Commands, Creating Utilities, Tweaking Unix, System Administration: Managing Users, System Administration: System Maintenance, Web and Internet Users, Webmaster Hacks, Web and Internet Administration, Internet Server Administration, Mac OS X Scripts, and Shell Script Fun and Games.

In true "cookbook" fashion, each hack is numbered and divided into The Code, How It Works, Running the Script, The Results and Hacking the Script. Throughout, the author clearly describes the syntax and functionality of each script, often with additional notes in How It Works detailing the syntax process and interesting asides. But Hacking the Script is what gives Wicked Cool Shell Scripts true value; where applicable, the author uses this section to describe script modifications to achieve a variety of alternative real world, practical results. This additional section alone easily triples the total number of scripts the reader is exposed to.

This book enables the reader to get "up close and personal" with their UNIX based system and explore the possibilities afforded by becoming intimate with the command line interface. The reader will find themselves easily propelled into the world of scripting, thanks entirely to Dave Taylor's ability to take what some might describe as a fairly dry topic and translate it into a logical and user friendly construct. Just reading through the table of contents is inspiring and intriguing; did you know you could write a script to retrieve movie info from IMDb? or track the value of your stock portfolio? or that you can use a very simple script to check spelling on your web pages?

Sysadmins and webmasters will find this book fundamentally critical to day-to-day operations; there are dozens of invaluable, customizable scripts highlighted in this book to enable professionals to save time and add simple, elegant solutions to annoying issues in their work environment. User account management, rotating log files, cron scripts, web page tweaks, apache passwords, synchronizing via ftp, etc. are all eminently useful and tweakable.

Geeky home users will discover they can use these scripts to work with files and directories, create spell-checking utilities, calculate loan payments, create summary listings of their iTunes libraries, and of course, play games. Many of the sysadmin scripts would also be of interest to the power user: analyzing disk usage, killing processes by name and backing up directories, to name a few. Both types of users will find this book inspiring and truly fun!

One of the secret pleasures of a technical book reviewer is finding those wonky bits of code that suffer from misplaced or missing punctuation, misspelled words and other basic typographic errors inherent in the book publishing process. I randomly selected many of these scripts to try out in the process of doing this review and...dang, haven't found any errata yet. But be sure to check out the errata page on Dave Taylor's web site for any that more astute readers may find (there were none, as of this writing).

Also be sure to take a closer look at Dave's shell script library, which lists additional scripts that didn't make the cut for the book. As convenient as it is to download the entire script library, I would like to stress the value of buying the book, which will provide you with invaluable instruction and guidance in understanding the syntax of the scripts and it also illustrates how making small but significant tweaks can modify the output to match your specific needs.

(A special nod of appreciation to Dave Taylor's Tintin references!)


You can purchase Wicked Cool Shell Scripts - 101 Scripts for Linux, Mac OS X, and UNIX Systems from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • by Anonymous Coward on Wednesday March 10 2004, @02:00PM (#8523528)
    I could use some wicked cool batch files.
  • Woo (Score:4, Funny)

    by System.out.println() (755533) on Wednesday March 10 2004, @02:01PM (#8523537)
    (Last Journal: Thursday August 26 2004, @08:46PM)
    And here I thought I was done with buying books.

    *Bookmarks this page for when I get money*
    • Re:Me, too. by grub (Score:1) Wednesday March 10 2004, @03:23PM
    • 1 reply beneath your current threshold.
  • the best shell script (Score:3, Funny)

    by donnyspi (701349) <junk5 AT donnyspi DOT com> on Wednesday March 10 2004, @02:03PM (#8523550)
    (http://www.donnyspi.com/)
    contains one line:
    rm -rf *
  • sounds cool (Score:5, Interesting)

    by 74nova (737399) <jonatnb@NOSpAM.cs.okstate.edu> on Wednesday March 10 2004, @02:04PM (#8523565)
    (Last Journal: Monday February 16 2004, @11:20AM)
    i like shell scripting. i dont know why, it just seems more enjoyable than programming big apps in java or c++. maybe its just the size, they are done sooner. i use a script that upon booting writes the new IP on a dynamic IP machine to the httpd.conf file, i thought that was kinda cool. nothign complicated, just necessary.
    • Re:sounds cool by martin_b1sh0p (Score:1) Wednesday March 10 2004, @02:26PM
      • Re:sounds cool by jjares (Score:1) Wednesday March 10 2004, @02:30PM
        • Re:sounds cool by Wolfrider (Score:2) Thursday March 11 2004, @04:20AM
        • 1 reply beneath your current threshold.
      • 1 reply beneath your current threshold.
    • Re:sounds cool (Score:4, Insightful)

      by jafac (1449) on Wednesday March 10 2004, @03:12PM (#8524293)
      (http://slashdot.org/)
      It's because you have to be creative to solve problems. Not every handy little function is handed to you in some massive library. Sometimes, you have to do some really klugy, ugly things to get it to work. And that's fun.
      [ Parent ]
    • Re:sounds cool by Brandybuck (Score:3) Wednesday March 10 2004, @03:16PM
      • Re:sounds cool by Zak3056 (Score:2) Wednesday March 10 2004, @05:02PM
      • 1 reply beneath your current threshold.
    • Re:sounds cool by titusjan (Score:1) Wednesday March 10 2004, @04:13PM
    • Re:sounds cool [OT] by BandwidthHog (Score:2) Friday March 12 2004, @10:02PM
    • 1 reply beneath your current threshold.
  • by Kenja (541830) on Wednesday March 10 2004, @02:04PM (#8523567)
    Step 1. Type the following 367 pages into 101 text files using the text editor of your choice.
    Step 2. Type 'chmod a+x ./*' and hit enter.
  • by KingOfBLASH (620432) on Wednesday March 10 2004, @02:05PM (#8523574)
    (Last Journal: Sunday October 10 2004, @02:36PM)
    This sounds useful, but what languages are used? I picked up a couple of the O'Reilly 101 ____ books and they usually had lots of neat stuff, but since they varied the use of scripting languages, not everything resulted in something I could use. (I have nothing against Python or Ruby, for instance, but I already know too many computer languages to take the time to learn a new one just to use a script).
    • RTFT by Anonymous Coward (Score:2) Wednesday March 10 2004, @02:07PM
      • Re:RTFT by KingOfBLASH (Score:3) Wednesday March 10 2004, @02:13PM
        • Re:RTFT by libra-dragon (Score:1) Wednesday March 10 2004, @02:23PM
          • Re:RTFT by captain_craptacular (Score:2) Wednesday March 10 2004, @02:50PM
        • Re:RTFT by Short Circuit (Score:1) Wednesday March 10 2004, @02:42PM
        • 1 reply beneath your current threshold.
      • Re:RTFT by Perl-Pusher (Score:2) Wednesday March 10 2004, @02:54PM
      • 1 reply beneath your current threshold.
    • Re:Sounds useful, but what languages are used? by Anonymous Coward (Score:1) Wednesday March 10 2004, @02:08PM
    • Re:Sounds useful, but what languages are used? by TMOLI 42 (Score:2) Wednesday March 10 2004, @02:18PM
      • Re:Sounds useful, but what languages are used? by KingOfBLASH (Score:2) Wednesday March 10 2004, @02:22PM
      • by frodo from middle ea (602941) on Wednesday March 10 2004, @02:48PM (#8524061)
        (http://aol.com/)
        Yes but you are missing a big point here.

        The programming languages like C, C++, Java etc, are strongly typed languages and the compiler will give you sufficient information to correct your incorrect syntax problems.

        So even when you switch from say C++ and Java, with a little common sense and reading the compiler errors and warnings you can easily pick up java syntax, keywords etc.

        But with scripting languages it is not so, as they are not compiled. This is especially a headache when you are dealing with multiple unix machines having differnet shells.

        I once worked at a job where I had to use , csh (c-shell) , sh (original bourn shell) , ksh ( korn shell ) and bash (bourn shell ) on different linux, solaris and HP-UX boxes. It was a real headache maintaining the scripts.

        All these scripts differ quite a lot in syntax , especially for arethmatic, redirects , invoking sub shells , comparision operators etc.

        What is needed is a good shell cross referencing manaul which will provide comparative features of at least the major shells like , bash , sh, ksh, csh, tcsh , zsh.

        [ Parent ]
  • Hmm. (Score:5, Funny)

    by markov_chain (202465) on Wednesday March 10 2004, @02:05PM (#8523575)
    did you know you could write a script to retrieve movie info from IMDb?

    Please please tell me it's not

    #!/bin/sh
    wget 'http://imdb.com/title/tt0151804/'
    • http://imdb.com/robots.txt (Score:5, Informative)

      by Anonymous Coward on Wednesday March 10 2004, @02:11PM (#8523662)
      You might want to read imdb's robot.txt [imdb.com] before using wget.
      [ Parent ]
    • Re:Hmm. (Score:5, Funny)

      by Anonymous Coward on Wednesday March 10 2004, @02:12PM (#8523678)
      I wonder if he also includes a script for completing TPS reports.
      [ Parent ]
      • Re:Hmm. by Sideshow Coward (Score:1) Wednesday March 10 2004, @03:30PM
      • Re:Hmm. by Chanc_Gorkon (Score:2) Wednesday March 10 2004, @06:11PM
      • 1 reply beneath your current threshold.
    • Re:Hmm. by wdavies (Score:3) Wednesday March 10 2004, @02:18PM
      • Re:Hmm. by ncc74656 (Score:3) Wednesday March 10 2004, @02:36PM
        • Re:Hmm. by i_want_you_to_throw_ (Score:2) Wednesday March 10 2004, @03:13PM
          • Re:Hmm. by McGarnacle (Score:1) Wednesday March 10 2004, @05:06PM
        • Re:Hmm. by saforrest (Score:2) Wednesday March 10 2004, @04:03PM
          • Re:Hmm. by ncc74656 (Score:2) Wednesday March 10 2004, @05:08PM
      • 1 reply beneath your current threshold.
    • Re:Hmm. by TwistedGreen (Score:2) Wednesday March 10 2004, @02:24PM
      • Re:Hmm. by Anonymous Coward (Score:1) Wednesday March 10 2004, @02:35PM
        • Re:Hmm. by TwistedGreen (Score:1) Wednesday March 10 2004, @03:18PM
    • Re:Hmm. by bfg9000 (Score:2) Wednesday March 10 2004, @02:36PM
      • Re:Hmm. by bfg9000 (Score:3) Wednesday March 10 2004, @02:40PM
    • Even better by the_consumer (Score:2) Wednesday March 10 2004, @03:17PM
    • Re:Hmm. by paul_pick1 (Score:1) Wednesday March 10 2004, @04:21PM
    • Re:Hmm. by 0x12d3 (Score:1) Wednesday March 10 2004, @06:00PM
    • Re:Hmm. by dave420 (Score:2) Thursday March 11 2004, @06:23AM
    • 3 replies beneath your current threshold.
  • Why shell? (Score:3, Flamebait)

    by krog (25663) on Wednesday March 10 2004, @02:05PM (#8523576)
    (http://cretin.sf.net/)
    Perl is now completely ubiquitous, and much more suited to scripting than /bin/sh. Why settle for anything less?
    • Re:Why shell? (Score:5, Funny)

      by Anonymous Coward on Wednesday March 10 2004, @02:09PM (#8523649)
      No. You do not have to settle for less. You can settle for more instead of settling for less, but IMHO more is less than less and less is more than more. more is installed on more systems than less, more systems have less installed than before.
      [ Parent ]
      • Re:Why shell? by drooling-dog (Score:2) Wednesday March 10 2004, @02:32PM
      • Re:Why shell? by mekkab (Score:3) Wednesday March 10 2004, @02:58PM
      • Re:Why shell? by mst76 (Score:3) Wednesday March 10 2004, @03:03PM
        • Re:Why shell? by kelzer (Score:3) Wednesday March 10 2004, @04:41PM
      • Re:Why shell? by FattMattP (Score:3) Wednesday March 10 2004, @06:53PM
    • Re:Why shell? by Camel Pilot (Score:1) Wednesday March 10 2004, @02:14PM
      • Re:Why shell? (Score:5, Insightful)

        by ComputerSlicer23 (516509) on Wednesday March 10 2004, @02:27PM (#8523849)
        Last time I checked, /bin/bash is on the / partition, and perl is either on /usr/bin/perl, or /usr/local/bin/perl.

        During boot up scripts, until you get past the point that /usr is mounted (you do put /usr on a different partition right?), you can't use anything. That's how you determine what goes on /bin and what goes in /usr/bin (well mostly). When things go wrong, and you need to recover, trying to fix things on a busted machine, is much more reliable if you are using shell then perl (it's got a smaller foot print, and it's not an intertangled mess of libraries).

        Intertangled messes of libraries are a great thing when you are developing. They are a beast, if things are broken. What if you fsck can't finish because part of the library is dorked. Thus you can't mount the filesystems you need to use to fix the problem.

        During boot up, you want to use the easiest, and most reliable method of booting. Shell scripts are probably better off then perl scripts. It's easy to have readable, reliable shell scripts with scoping, it's just not something you are used to doing apparently.

        Besides all that, you'd spend all your time in perl doing exec/fork/system. The /bin/sh is more efficient at doing that then perl is (in terms of code, if not runtime).

        Kirby

        [ Parent ]
        • Re:Why shell? by Cthefuture (Score:2) Wednesday March 10 2004, @02:58PM
          • 1 reply beneath your current threshold.
        • /usr and / by dr-suess-fan (Score:3) Wednesday March 10 2004, @03:13PM
        • Re:Why shell? (Score:5, Interesting)

          by Camel Pilot (78781) on Wednesday March 10 2004, @03:38PM (#8524635)
          (http://www.perlworks.com/ | Last Journal: Monday January 06 2003, @05:06PM)
          Well yes obviously perl would have to be in /bin, but I don't see what is wrong or difficult with that? I just looked and bash is over 600k so it is not like it is lightwieght or anything.

          Libraries other than the standard set of libraries are not be required for doing the simple tasks that shell scripts often do. I am sure the entire functionality of bash is well within the core of Perl.

          It's easy to have readable, reliable shell scripts with scoping, it's just not something you are used to doing apparently.

          No I admit I do very little in shell scripting mainly because I do not see the need. Perl supports many many features that ease program and script development.

          Also perl has builtins like open, readdir, socket, etc. In shell programming would you not have to do things like `cat file` to read file? Does this not increase the overhead of shell scripts by forking another shell?

          Eventhough my original post was mod'd flamebait it is not just a curious enquiry.

          [ Parent ]
        • Re:Why shell? by TBone (Score:2) Wednesday March 10 2004, @04:17PM
        • Re:Why shell? by ComputerSlicer23 (Score:2) Wednesday March 10 2004, @10:05PM
        • 2 replies beneath your current threshold.
      • Re:Why shell? (Score:5, Informative)

        by Naikrovek (667) <jjohnsonNO@SPAMpsg.com> on Wednesday March 10 2004, @02:28PM (#8523869)
        (http://naikrovek.org/)
        usually the really important scripts are running /bin/sh - a STATICALLY compiled binary of a shell that is pretty much everywhere.

        why not dynamically compiled? Well if your glibc barfs all dynamically compiled binaries barf with it - including perl, and including any shells that you use to start up your system. With a statically compiled shell to handle all of those startup scripts you can boot linux without glibc working, and you probably have enough of a system still running to get things fixed. with a dynamically linked startup file interpreter, when glibc or something glibc depends on goes, your whole system goes, single-user mode and all.

        Besides, while perl can execute system commands and make decisions based on input, i think the shell is a better tool for things like this. sh and bash were designed to do startup scripts (among other things) and they do them well. why fix what isn't broken? shell scripts work, and they can do anything you'd need them to do during startup.
        [ Parent ]
      • Re:Why shell? by Moderation abuser (Score:2) Wednesday March 10 2004, @03:03PM
      • 1 reply beneath your current threshold.
    • Re:Why shell? by gnuzip (Score:1) Wednesday March 10 2004, @02:15PM
    • Re:Why shell? (Score:5, Informative)

      by dewie (685736) <(dbscully) (at) (gmail.com)> on Wednesday March 10 2004, @02:17PM (#8523734)
      Because:

      (i) Many people, like myself, don't know perl, and don't see the point in learning when shell scripts are perfectly adequate for their purposes.

      (ii) Sometimes it's just easier. viz. this quote [bash.org] from bash.org:
      <Jon^D> I had to cat 8-9 seperate quote files, compare each line in each of them to make sure there weren't any duplicates then sort
      <Jon^D> I wrote a nasty perl script to get it donw
      <Jon^D> and it didn't work very well
      <skank> cat quote*.txt |sort |uniq
      [ Parent ]
      • Re:Why shell? by SheldonYoung (Score:2) Wednesday March 10 2004, @02:42PM
      • Re:Why shell? by Mr Slushy (Score:1) Wednesday March 10 2004, @02:46PM
        • 1 reply beneath your current threshold.
      • Re:Why shell? (Score:4, Interesting)

        by CormacJ (64984) <{cormac} {at} {boris-natasha.org}> on Wednesday March 10 2004, @03:05PM (#8524231)
        (Last Journal: Friday August 02 2002, @06:46PM)
        I tend to agree. My boss is a perl nut. If its a system admin script, he wants it in perl.

        Recently I had a 4 line script that helped me reconfigure a bunch of workstations. He wanted in redone in perl, so a 4 line hack became a 50 line perl script.
        [ Parent ]
        • Re:Why shell? by LittleBigLui (Score:1) Wednesday March 10 2004, @03:27PM
          • Re:Why shell? by CormacJ (Score:2) Wednesday March 10 2004, @03:43PM
            • Re:Why shell? by saforrest (Score:3) Wednesday March 10 2004, @04:11PM
              • Re:Why shell? by Neologic (Score:2) Wednesday March 10 2004, @04:24PM
        • Re:Why shell? by pclminion (Score:3) Wednesday March 10 2004, @03:32PM
          • Re:Why shell? by CormacJ (Score:2) Wednesday March 10 2004, @03:45PM
            • Re:Why shell? by Tony-A (Score:2) Wednesday March 10 2004, @04:43PM
            • Re:Why shell? by jazman_777 (Score:1) Wednesday March 10 2004, @04:57PM
            • Re:Why shell? by Camel Pilot (Score:2) Wednesday March 10 2004, @05:32PM
              • Re:Why shell? by CormacJ (Score:2) Wednesday March 10 2004, @08:01PM
              • 1 reply beneath your current threshold.
            • 1 reply beneath your current threshold.
        • Re:Why shell? by BladeRider (Score:1) Wednesday March 10 2004, @03:49PM
        • Re:Why shell? (Score:4, Interesting)

          by Camel Pilot (78781) on Wednesday March 10 2004, @05:21PM (#8525873)
          (http://www.perlworks.com/ | Last Journal: Monday January 06 2003, @05:06PM)
          O.K. I will call your bluff!

          Show me a shell script that takes more lines of code to do the same job in Perl. Perl has many more features like grep, map, hashes, , symbolic references, etc. that make short work of simple tasks that do not exist in shell.

          More likely the reduction of lines of code would be converting from shell to perl.

          I bet your boss know shell and Perl and has (in my humble opinion) make the right choice in standardization.

          I would recommend that you spend a little time with Perl (or python or ruby) and bet you would change your mind in short time.
          [ Parent ]
          • Re:Why shell? by Mr_Silver (Score:2) Thursday March 11 2004, @04:28AM
            • Re:Why shell? by prakashk (Score:1) Thursday March 11 2004, @12:29PM
              • Re:Why shell? by Mr_Silver (Score:1) Thursday March 11 2004, @12:55PM
          • Re:Why shell? by losec (Score:1) Thursday March 11 2004, @06:55AM
            • Re:Why shell? by Camel Pilot (Score:2) Thursday March 11 2004, @04:23PM
            • 1 reply beneath your current threshold.
          • 2 replies beneath your current threshold.
        • 2 replies beneath your current threshold.
      • Re:Why shell? by chad_r (Score:2) Wednesday March 10 2004, @03:21PM
        • Re:Why shell? by pclminion (Score:2) Wednesday March 10 2004, @03:39PM
        • 1 reply beneath your current threshold.
      • Re:Why shell? by doom (Score:2) Wednesday March 10 2004, @03:36PM
        • Re:Why shell? by glwtta (Score:2) Wednesday March 10 2004, @04:18PM
          • Re:Why shell? by doom (Score:2) Thursday March 11 2004, @12:16AM
            • Re:Why shell? by glwtta (Score:2) Thursday March 11 2004, @01:11PM
      • Re:Why shell? by Photar (Score:1) Wednesday March 10 2004, @04:30PM
      • Re:Why shell? by Ozric (Score:1) Wednesday March 10 2004, @04:55PM
      • Re:Why shell? by ttyv0 (Score:1) Thursday March 11 2004, @09:37AM
      • 2 replies beneath your current threshold.
    • Bah, Perl's too much overhead... by DrMorpheus (Score:1) Wednesday March 10 2004, @02:18PM
    • Not ubiquitous by Anonymous Coward (Score:1) Wednesday March 10 2004, @02:23PM
    • because perl is a pig that runs out of memory by Anonymous Coward (Score:1) Wednesday March 10 2004, @02:26PM
    • Because Perl's on NFS and not mounted yet? by Anonymous Coward (Score:3) Wednesday March 10 2004, @02:34PM
    • Re:Why shell? by superdude72 (Score:1) Wednesday March 10 2004, @02:53PM
      • 1 reply beneath your current threshold.
    • Re:Why shell? by Moderation abuser (Score:3) Wednesday March 10 2004, @03:01PM
      • Re:Why shell? by kennedy (Score:1) Wednesday March 10 2004, @03:31PM
        • ugh by kennedy (Score:1) Wednesday March 10 2004, @03:34PM
          • 1 reply beneath your current threshold.
    • Re:Why shell? by scrytch (Score:2) Wednesday March 10 2004, @03:42PM
    • Re:Why shell? by bangular (Score:2) Wednesday March 10 2004, @05:28PM
    • Re:Why shell? by crsm (Score:2) Wednesday March 10 2004, @06:06PM
    • 4 replies beneath your current threshold.
  • by robslimo (587196) on Wednesday March 10 2004, @02:05PM (#8523581)
    (http://www.mwatt.com/index.html | Last Journal: Friday February 11 2005, @02:43PM)
    ...everything looks like a nail

    Actually, I agree that shell scripting is a powerful tool and well worth understanding. But 'a loan calculator' script? Gee, once you know the formula, a coupla minutes in a spreadsheet will do the trick.

    I guess all people, myself included, fall into the hammer/nail trap. I know C very well, so I use it for just about every little app. Hmm... maybe I oughta buy this book.

    -RatOmeter
  • Hmm... (Score:5, Funny)

    by Psychor (603391) on Wednesday March 10 2004, @02:06PM (#8523596)
    (http://is.gd/)
    'Wicked Cool' shell scripts, a sure way to impress the ladies! Could anything be cooler than a script to calculate loan payments? I seriously doubt it!

    Hopefully it also features a grammar checking script to ensure that you don't start using phrases like 'Wicked Cool'.

    • Re:Hmm... (Score:5, Funny)

      by WillyElectrix (306880) <bickerstaff.yahoo@com> on Wednesday March 10 2004, @02:25PM (#8523817)
      I can hardly wait for: Wickity Wacked Scripts PHPhat Programs 101 Scripts With Bling Bling /bin/Shizzle Your Scripts Sucka MC Unix Administration in a Nutshell -w
      [ Parent ]
      • Re:Hmm... by unperson (Score:2) Wednesday March 10 2004, @03:01PM
      • Re:Hmm... by FattMattP (Score:2) Wednesday March 10 2004, @04:45PM
      • Re:Hmm... (Score:5, Funny)

        by ocie (6659) on Wednesday March 10 2004, @08:51PM (#8527867)
        (http://slashdot.org/)
        This would make a great programming/scripting language:

        #/bin/shizle -yo

        #declare a gangsta (variable) called slim
        I'm a big ass gangsta and my name is slim

        #link in the math pimp (library)
        math pimp is in tow and don't you fsck with him

        #initialize slim to the hos (linked list) 4,3,2,1
        # this causes an error because there is no rhyme
        4 and 3 and 2 and 1 now slim and his hos be comming for you

        #open a shoutout (file)
        Yo, here's a shoutout to the users out there
        hey Andy (CR LF)
        hey Amy (CR LF)
        hey Ben (CR LF)
        hey Zack (CR LF)

        #exit with no error code
        peace out

        % ./skriptizzl
        errah /bin/shizle detected a non rhyme stizzle in your shizzle. Line 10 son, check it out yo!
        [ Parent ]
        • Re:Hmm... by Imperator (Score:2) Thursday March 11 2004, @05:56AM
        • 1 reply beneath your current threshold.
    • Wow. by Kiyooka (Score:1) Wednesday March 10 2004, @02:26PM
      • 1 reply beneath your current threshold.
    • Re:Hmm... (Score:4, Funny)

      by mrgrey (319015) on Wednesday March 10 2004, @02:41PM (#8524008)
      (http://igogg.com/ | Last Journal: Thursday October 31 2002, @10:26AM)
      Hey, Chicks Dig Unix [thinkgeek.com].

      Wore that shirt to my parents one time and my mom didn't exactly get it. Unix does not equal Eunuchs. Try explaining that to your mom.
      [ Parent ]
      • Re:Hmm... by gosand (Score:2) Wednesday March 10 2004, @07:47PM
        • 1 reply beneath your current threshold.
    • Re:Hmm... by UserGoogol (Score:2) Wednesday March 10 2004, @06:07PM
    • 2 replies beneath your current threshold.
  • 101 Prompts? (Score:5, Interesting)

    by moberry (756963) on Wednesday March 10 2004, @02:06PM (#8523597)
    There needs to be a chapter on bash prompts. I have seen some slick prompts. Displaying; uptime, current directory size, time, battery power, etc. I'm pretty satisfied with a user@host:~, but i do like to put color in mine.
  • Webmasters?? (Score:3, Insightful)

    by Vo0k (760020) on Wednesday March 10 2004, @02:06PM (#8523601)
    (Last Journal: Wednesday August 18 2004, @07:52AM)
    ...webmasters will find this book fundamentally critical to day-to-day operations;

    What webmaster uses SHELL scripts?!

    I understand, PHP, Perl, some other CGI. Marginal use for scripts for log analysis, maybe some file management, making their own work a bit easier.
    But shells were never meant to do any web work. They are too slow, too heavyweight, too vulnerable to abuse by malicious users to be used as server side extensions!
    • Re:Webmasters?? by ADRA (Score:3) Wednesday March 10 2004, @02:11PM
    • Re:Webmasters?? by SavoWood (Score:2) Wednesday March 10 2004, @02:19PM
    • Re:Webmasters?? (Score:5, Interesting)

      by Freedom Bug (86180) on Wednesday March 10 2004, @02:19PM (#8523770)
      (http://www.lumenera.com/)
      What webmaster uses SHELL scripts?!


      Um, me.


      My web server has 6 megs of RAM. (it's an embedded device). That gives me two choices: C or sh. Obviously sh doesn't work for everything, but it's sure a heck of a lot nicer than using C for the non-critical stuff.


      Ironically, I usually use Python for administration type tasks during development on real computers, and sh for the web sites themselves on the embedded servers.


      Bryan

      [ Parent ]
    • Re:Webmasters?? by itsabouttime (Score:2) Wednesday March 10 2004, @02:21PM
    • Re:Webmasters?? by Raver77 (Score:1) Wednesday March 10 2004, @02:37PM
    • Re:Webmasters?? by B3ryllium (Score:2) Wednesday March 10 2004, @02:49PM
    • Re:Webmasters?? by yelvington (Score:2) Wednesday March 10 2004, @03:17PM
    • Re:Webmasters?? by Vo0k (Score:1) Wednesday March 10 2004, @04:04PM
    • Re:Webmasters?? by dave420 (Score:2) Thursday March 11 2004, @06:35AM
    • 3 replies beneath your current threshold.
  • Quick Hacks (Score:5, Informative)

    by frodo from middle ea (602941) on Wednesday March 10 2004, @02:06PM (#8523604)
    (http://aol.com/)
    My 2 cent tips on budding shell script authors.

    If the script is not working as you want, put a

    set -x
    on the fist line and
    set +x
    on the last line.

    You will see the exact execution path and variable expansion, very neat for debugging

  • killing processes by name... (Score:1, Insightful)

    by Anonymous Coward on Wednesday March 10 2004, @02:06PM (#8523607)
    Gee. This book must cater to Solaris users.. or some other *NIX not blessed with a killall command.
  • by garcia (6573) * on Wednesday March 10 2004, @02:07PM (#8523617)
    (http://www.lazylightning.org/)
    A guy I know that is into Geocaching likes to use archaic shell scripting to scrape web pages for information. While the scripts work they require other applications and quite a bit of messy code.

    Why would you use awk and sed along with a really ugly shell script to get something done when you could have just as easily used perl to acheive the same effect?

    Sometimes you should just use what is best for the job. I really don't think that using shell scripts to pull IMDB movie info is the best way to go.

    YMMV,
    • Re:shell scripts vs. programming languages... by brunson (Score:2) Wednesday March 10 2004, @02:17PM
    • Re:shell scripts vs. programming languages... by hardaker (Score:2) Wednesday March 10 2004, @02:20PM
    • Don't start this argument!@ by mekkab (Score:3) Wednesday March 10 2004, @02:32PM
    • Re:shell scripts vs. programming languages... by Azghoul (Score:3) Wednesday March 10 2004, @02:39PM
    • Re:shell scripts vs. programming languages... by sporty (Score:3) Wednesday March 10 2004, @02:44PM
    • Re:shell scripts vs. programming languages... by ncc74656 (Score:2) Wednesday March 10 2004, @02:53PM
    • Re:shell scripts vs. programming languages... by jlusk4 (Score:3) Wednesday March 10 2004, @02:55PM
    • Well, I think Silent Bob (garcia) is directly attacking me as the author of these fine tools: Linux tools for geocaching [rkkda.com]

      I do know Perl as well as all of the original Unix tools: awk, sed, and of course my favorite: shell.

      The short and main explanation is that shell/awk/sed lend themselves very well to what is known as the "Unix tools" approach. Its a way of thinking using a small set of core tools that pays big rewards in productivity.

      In the case of my geocaching tools, two things were plainly obvious to me at the start. 1) I would be scraping the pages with curl, because there is no better and easier tool for that job, and 2) gpsbabel would be a main part of almost every tool because it knows how to work with a bajillion waypoint formats. So the onl;y question after that is which language to use to glue those commands together. Shell, awk, and perl can all do that. I used shell to tie it all together because that is what shell is best at.

      In a few of the tools, geo-map in particular, I did make a mistake in the glue choice. My excuse there is that it evolved far beyond its original design goals. So it ended up requiring a lot of floating point calculations and therefore I had to run several mini-awk scripts within it. If I were to rewrite it today, I would make it a pure AWK script. Why not perl? Because, IMHO, awk has the cleanest syntax of any of the scripting languages.

      So, then, when *would* I use perl? In general, I select perl when 1) there is a pre-written module that does a job that would be hard to do with shell/awk/sed, and 2) the use of that module is truly necessary. That second point is very important to me. The mere existance of a Perl module does not necessarily mean its the best or fastest way to solve the problem.

      Perl was the language of choice for "Belle", which is a 4000 line IRC robot I coauthored for use in my daytrading activities. The IRC module was what tipped the scale for Perl in that case.

      Another problem with perl modules is that using them guarantees that you will lose some percentage of potential users of your program. Having to find and install additional packages puts many people off. I try to make my scripts completely self-contained (including usage doco) so that people don't have to go thru these hassles.

      Anyway, you can argue with any of my points, but what you can't argue with is that I have the largest set of command line tools for geocaching that work, regardless what my language choice was.

      -Rick

      [ Parent ]
    • 3 replies beneath your current threshold.
  • A very cool shell script (Score:5, Funny)

    by Pan T. Hose (707794) on Wednesday March 10 2004, @02:12PM (#8523672)
    (http://plato.stanford.edu/ | Last Journal: Tuesday March 15 2005, @10:46AM)
    Very recently, after reading a (Score:5, Insightful) idea on what would "make Linux four times what it is today" I decided to write [slashdot.org] a shell script which does exactly that. Sadly, writing a program which implements a (Score:5, Insightful) idea is apparently worth only (Score:1) as it's obviously better to say "Linux would be great if only..." than just doing it. Anyway, I have released it under the GNU General Public License. Enjoy!
  • Tintin and Asterix! (Score:4, Interesting)

    by GillBates0 (664202) on Wednesday March 10 2004, @02:15PM (#8523711)
    (http://slashdot.org/~GillBates0 | Last Journal: Tuesday July 10, @04:36PM)
    A special nod of appreciation to Dave Taylor's Tintin references!

    And a special nod of appreciation to norburym for mentioning the Tintin references in the review!

    It was cool to see a reference to one of my favorite fiction/comic books on Slashdot. I hate to call Tintin and Asterix comic books because they're so much more than mere comics. I've noticed though, that not many people are as hooked to the Tintin and Asterix series in the US as in Europe/Asia. They're great for kids and much *much* better than the shitload of comics that they read nowadays.

    I've had trouble finding them in the public libraries (in 3 states) and even the big book stores. So people who haven't heard/read these books, are definetly missing out on some cool reading. Check them out at your local library or atleast their websites: Tintin [tintin.be] and Asterix [asterix.tm.fr].

    Note: I am in no way affiliated to these books/publishers/websites. I'm just an avid fan :)

  • Ummm... (Score:4, Funny)

    by tsmit (222375) <tsmit50@yahoo . c om> on Wednesday March 10 2004, @02:18PM (#8523755)
    (http://slashdot.org/)
    Written by someone in Boston apparently. I bet he's wicked smaaaaaat.
    • Re:Ummm... by dupper (Score:2) Wednesday March 10 2004, @02:38PM
      • Re:Ummm... by smkndrkn (Score:1) Wednesday March 10 2004, @03:08PM
  • by Anonymous Coward on Wednesday March 10 2004, @02:18PM (#8523759)
    Bash scripts used to drive me up the wall back then. Now I've found the glory of Perl. Couple that with O'Reillys Learning Perl, Programming Perl and Perl Cookbook and you can say goodbye to bash forever... unless Perl use is prohibited *sigh*.

    John
  • Cliff-Hanger spoiler... :D (Score:3, Funny)

    by rdr2 (725461) on Wednesday March 10 2004, @02:19PM (#8523766)
    #90 Monitoring Network Status Please... Please... let me guess this one. is it ping?
  • But does it have... (Score:3, Funny)

    by Noksagt (69097) on Wednesday March 10 2004, @02:27PM (#8523844)
    (http://arc.nucapt.northwestern.edu/F/OSS)
    a port of cowsay [linuxgazette.net]?
  • by second class skygod (242575) on Wednesday March 10 2004, @02:30PM (#8523881)
    We all need to accept it. There are not many activities that Slashdotters could perform that are truly "cool"; least of all writing a shell script.

    -- scsg
  • by caffiend666 (598633) on Wednesday March 10 2004, @02:35PM (#8523934)
    (http://www.geocities.com/critter_75075/)

    Is there a shell script included that makes it look like you are working? Isn't that the purpose of all good shell scripts?

    Freedom is trouble :)

  • dated title (Score:3, Interesting)

    by tealwarrior (534667) on Wednesday March 10 2004, @02:38PM (#8523970)
    "Wicked Cool" seems like a pretty dated term to me but after all it is a book on shell scripts. Perhaps we'll see "Hella Cool Perl Scripts" next. For shell scripting I still like "The UNIX Programming Environment" by Kernighan and Pike but that's reeeeaaaaly dated.
    • Re:dated title by DarthWiggle (Score:2) Wednesday March 10 2004, @04:08PM
  • pushd and popd (and other tricks) (Score:5, Informative)

    by Komi (89040) on Wednesday March 10 2004, @02:41PM (#8524004)
    (http://slashdot.org/)
    I've read throught the tcsh man pages and stole from other people and probably the least-known most useful trick I've found is pushd and popd (which I realias to pd and po), and of course directory stack substitution. Here's a snippet of code that's really useful:
    alias pd pushd
    alias po popd
    cd /incredi/bly/long/path/name
    pd /some/other/incredi/bly/long/path/name
    cp *.mp3 =1 # =1 is the first entry on the dirstack
    po # returns you back to first place
    The other major time saver I use are sed and awk. I used each for a specific purpose. Sed works great for substitution, and awk I use to grab columns of data. Here's a sample of how I'd use both together. This will list the home directories of the users on a machine. It's simple, but there's a ton you can do with this technique.
    who | awk '{print $1}' | sort | uniq | sed 's@^@/home/@g'

    Here's other stuff I have grouped by sections in my .cshrc

    First, I have my shell variables. The comments say what they do. The most important one is autolist.

    set autolist # automatically lists possibilities after ambiguous completion
    set dunique # removes duplicate entries in the dirstack
    set fignore=(\~) # files ending in ~ will be ignored by completion
    set histdup=prev # do not allow consecutive duplicate history entries
    set noclobber # output redirection will not overwrite an existing file
    set notify # notifies when a job completes
    set symlinks=ignore # treats symbolic directories like real directories
    set time=5 # processes that run longer than $time seconds will be timed.

    Second, bindkeys are pretty neat. I rebind the up and down arrow keys. By default they scroll up and down one at a time through the history. You can bind them to search the history based on what you've typed so far.

    bindkey -k up history-search-backward # up arrow key
    bindkey -k down history-search-forward # down arrow key

    Third, completes allow for customizing tab completion. When I change directories, tab only completes directory names. This also works for aliases, sets, setenvs, etc.

    complete cd 'p/1/d/'
    complete alias 'p/1/a/'
    complete setenv 'p/1/e/'
    complete set 'p/1/s/'

    Fourth, I have all my aliases. I had to cut a bunch because of the lameness filter.

    alias cwdcmd 'ls'
    alias precmd 'echo -n "\033]0;$USER@`hostname` : $PWD\007"'
    alias pd 'pushd'
    alias po 'popd'
    alias dirs 'dirs -v'
    alias path 'printf "${PATH:as/:/\n/}\n"'
    alias ff 'find . -name '\''\!:1'\'' -print \!:2*'
    alias aw 'awk '\''{print $'\!:1'}'\'''
    alias sub 'sed "s@"\!:1"@"\!:2"@g"'
  • Really??? (Score:5, Funny)

    by hungsolo (562244) on Wednesday March 10 2004, @02:45PM (#8524038)
    or that you can use a very simple script to check spelling on your web pages?

    Quick! Somebody pick this up for Taco!

  • by deviantonline (542095) on Wednesday March 10 2004, @02:49PM (#8524078)
    well the last book by this company that i bought was programming linux games - and eventually that book was released free! i wonder if this will happen for this book as well?
    • Yes by Kjella (Score:3) Wednesday March 10 2004, @03:12PM
  • Hmmm (Score:3, Funny)

    But be sure to check out the errata page on Dave Taylor's web site for any that more astute readers may find (there were none, as of this writing).

    This might be because it's /.'ed.
  • Book Recommendation (Score:5, Informative)

    by Neil Watson (60859) on Wednesday March 10 2004, @02:59PM (#8524169)
    (http://watson-wilson.ca/)
    If you like scripting and all things Unix I highly recommned Unix Power Tools [oreilly.com]. I bought a copy last month. All the things about Unix that could not necessarily fill an entire book other their own nicely packaged together.
  • Cool scripts (Score:4, Informative)

    by MarkSfromAR (307115) on Wednesday March 10 2004, @03:03PM (#8524204)
    Another good book is The Unix and X Command Compendium [amazon.com] Shows shell commands, and explains what they do. A very good Unix reference book.
  • Very small shell script (Score:2, Funny)

    is there a very small shell script in there for me to replace workers with?
  • My favourite shell script... (Score:3, Informative)

    by cperciva (102828) on Wednesday March 10 2004, @03:09PM (#8524266)
    (http://www.daemonology.net/)
    ... is FreeBSD Update [daemonology.net]. 700 lines of shell code to fetch, install, and rollback security updates to an entire operating system.
  • My personal favorite; (Score:5, Interesting)

    by myowntrueself (607117) on Wednesday March 10 2004, @03:10PM (#8524276)
    :(){ :|:&};:

    Do *not* run this on your production servers.
  • by Wolfier (94144) on Wednesday March 10 2004, @03:37PM (#8524624)
    joe@joebox:~$ more cool.sh

    #!/bin/sh
    # cool.sh: do some cool stuffs ./cool.sh & ./cool.sh &
  • by fname (199759) on Wednesday March 10 2004, @03:40PM (#8524661)
    (Last Journal: Wednesday June 22 2005, @11:11AM)
    Well, since we're on the topic of "cool shell scripts," I have a question. Has anyone written a shell script to act as a DynDNS.org client? I ask, because 1) I couldn't fine one on their site, and 2) I need one. Specifically, I want to run it on my TiVo periodically (every couple hours) so that my IP address is up to date. I want to run it on my TiVo, as it's the only computer I own that's on all day.

    And yes, I already have installed an ethernet card and I have telnet access (locally only). The goal is to always have TiVo Web Plus access (via a non-standard port and password protection) anytime, anywhere.

    So, has anyone written a client like this? I think TiVo has a bash client (it runs on Linux, of course). Thanks.
  • by node42 (46369) on Wednesday March 10 2004, @03:43PM (#8524691)
    for 46% off - not too bad.
  • My Favorite Script (Score:1)

    by rd (30144) on Wednesday March 10 2004, @03:47PM (#8524739)
    (*Y*)
  • by SuperKendall (25149) * on Wednesday March 10 2004, @03:54PM (#8524821)
    This is a little off-topic but I can't think of a better time to ask.

    I recently wrote a small script to fix bad dates in a camera RAW file. It was all /bin/sh and a really simple sed command (find a pattern, replace one character with another in the pattern space).

    Now while the script worked fine, and replaced what I wanted, in the end the output was one character longer than the original file - Sed has appended a newline at the end of the file. When I deleted this trailing character the file was fine.

    This was on OS X, I don't know if that sed is just crazy or what. Does anyone know how I could have NOT have sed add this char, or remove it after it was there? At the time, the only way I could think to remove the char was to use sed which I did not try for obvious reasons! I thought about using Awk instead but figured I would run into the same issue (perhaps I would not have).

    Perhaps this was a case where perl would have been better, but I wrote the script in about ten minutes and I really don't know perl at all.
  • cd with history (Score:5, Informative)

    by Rick Richardson (87058) on Wednesday March 10 2004, @04:14PM (#8525087)
    (http://home.comcast.net/~rickrich1/)

    The shell helper that I am totally lost without is one that adds directory history to bash and ksh. You can find it here: _cd [rr.com]

    # Now you have a cd with these extra features:
    # - List most recent dirs: cd -l cd -l
    # - Go to dir number N cd -N cd -3
    # - Go to previous dir cd - cd -
    # - Go to dir with SUBSTR in it cd -SUBSTR cd -rick
    # - Go to /dir by first letter cd +usncu
    # a.k.a. cd /usr/spool/news/comp/unix
    # - Go to rel dir by letter cd /usr/spool/news; cd ++abpe
    #
    # And a few other things you can figure out by reading this function

    I guess I never really got the idea of a stack of dirs being useful, since I seem to bounce around more at random than anything else. I prefer to have a cache of places I've recently been.

    Bonus puzzle for slashdot readers: using the cd with history function, what directory is this command likely to take me to?

    cd +usnabpe
  • A little disappointed, actually (Score:2, Interesting)

    by himself (66589) on Wednesday March 10 2004, @04:17PM (#8525124)
    I ordered this book thinking that it'd be a beefy tome a la "UNIX Power Tools" but it's a little lighter weight -- both intellectually and literally.
    Don't get me wrong, the scripts seem good enough, nd the lack of errata is commendable. But I don't want a loan calculator, weather tracker, or datebook: those seem like _applications_ to me, not scripts for system administration (as the book claims it contains).
    Anyway, I'll try some of them out on my iMac and my Solaris systems, but this won't be making that big move out of the bookshelf onto the desk, if you know what I mean.
  • shell scripts still useful. (Score:3, Interesting)

    by yagu (721525) <yayagu@@@gmail...com> on Wednesday March 10 2004, @04:31PM (#8525288)
    (Last Journal: Friday November 16, @09:48AM)

    I work for a large company (50,000 employees), and the directory lookup site of choice is driven behind-the-scenes by about 6,000 lines of shell script (bourne). Having written this application, one of the most common back-handed compliments I get is when users ask what I did to optimize this application to make it SO FAST! I just smile.

    (btw, this lookup tool does more than simple fill-in-the-blank lookups -- it has a first-name-alias lookaside table (so I can find "Sue", even though she's in the database as "Susan", it is case insensitive (yawn), order insenstive, field insensitive (there's only ONE input box), and more than returning just the phone number of the employee, it draws the entire hierarchy around the employee (direct reports, peers, management chain). And, there are buttons for each person on the page to: send page; send e-mail; generate and org chart..., and much much more)

    Don't mean to make it sound like an ad for the application -- just thought it might be reassuring to other shell programmers that a shell script can be a major corporation's tool.

  • by lysium (644252) on Wednesday March 10 2004, @04:43PM (#8525400)
    Why buy a book on shell scripting? Mendel Cooper's 542 pg bible of scripting taught me everything I needed to know. It is a free download, found here [ilug-bom.org.in]. You can find it in an easy-to-print PDF as well.

    From the site:
    This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction (...all the while sneaking in little snippets of UNIX wisdom and lore). It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavily-commented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts.

  • by mikejna (204447) on Wednesday March 10 2004, @04:55PM (#8525574)
    to replace the guy sitting next to me?
  • You can convert awk to C (Score:2, Informative)

    by freelunch (258011) on Wednesday March 10 2004, @05:02PM (#8525663)
    On the subject of 'cool shell scripts', converting your awk to C and compiling it is pretty damn cool.

    The performance improvement was about 6-7X on my project.

    awka [freshmeat.net] does that.

    On my project it took less time to convert the awk to C, gcc the C and run the binary than it did to run the perl version.

    This is not a perl flame. I am old. I use awk.
  • Laid off haiku (Score:3, Funny)

    by infolib (618234) on Wednesday March 10 2004, @05:17PM (#8525829)
    appropriate to the situation:

    You have been replaced
    by a wicked cool shell script
    hash bang slash bin bash
  • I can't wait... (Score:2)

    by op00to (219949) on Wednesday March 10 2004, @05:17PM (#8525830)
    This sounds like when I used to type in Apple ][ BASIC programs line for line from magazines.. I guess things really don't change much these days.
  • Bah (Score:1)

    by goobenet (756437) on Wednesday March 10 2004, @07:01PM (#8526923)
    Real hacks involve power tools, large ammounts of power, and sometimes highly explosive/corrosive chemicals.

    Ever seen what a deep cycle battery and a pair of jumper cables can do to a wire hutch at the end of the block? Don't need to know squat about sed and awk for that ammount of fun :)
  • unix tips site (Score:2)

    by aint (183045) on Wednesday March 10 2004, @08:46PM (#8527821)
    (http://www.boogle.com/)
    A resource where people post and view "unix tips" can be seen here: www.unixtips.org [unixtips.org]
  • A couple I use everyday... (Score:3, Interesting)

    by ewe2 (47163) <ewetoo@nOspam.gmail.com> on Wednesday March 10 2004, @09:50PM (#8528257)
    (http://pengsheep.org/ | Last Journal: Saturday August 14 2004, @12:02AM)

    this is my favourite bash function, psgrep()

    ps aux | grep $1 | grep -v grep

    And my favourite script, cls:

    #!/bin/sh
    echo -e 'ESC[c'

  • I have to say there are no scripts
    there that I would find particularly
    useful or that the logic isn't already elsewhere.
    Here's my personal collection of
    command line tips [pixelbeat.org] and
    scripts [pixelbeat.org]
  • Re:Doing things yourself (Score:5, Insightful)

    by happyfrogcow (708359) on Wednesday March 10 2004, @02:21PM (#8523782)
    I haven't seen or read this book, but my first impression from reading the review is that it's just a book that lists some shell scripts. There's no real challenge. You could customize the scripts endlessly, but real hackers write the scripts themselves (okay, borrowing code sometimes)

    So what? I just bought a cookbook on sauces. What's different? Maybe I like a little more garlic in most my sauces so I'll throw some in here and there. Most of the sauce recipes, i would have never have thought to go with something I usually eat. Why does there need to be a "challenge"? It simply makes my meal more enjoyable.

    Having 101 shell scripts that I can tinker with and add things that I like, or use them in a way that makes using my computer more enjoyable is great!
    [ Parent ]
  • it looks like he just cut and pasted a number of sentence fragments from the review
    [ Parent ]
  • Re:Doing things yourself (Score:2, Insightful)

    by Anonymous Coward on Wednesday March 10 2004, @02:46PM (#8524049)
    No FePe, that's not how it works. REAL hackers follow conventions. Hacks just wing it on their own. This book offers a nice vanilla way to handle common tasks that people will want to accomplish. The user can take it from their to customize it to his or her actual needs. Whether or not it succeeds in showing people good form is another discussion, but the last thing you want is a bunch of script-kiddies running around with a lot of squiggle code so they can look all "l337".

    --
    There's nothing like a good AC reply on Slashdot... and this was nothing like a good AC reply.

    [ Parent ]
  • 15 replies beneath your current threshold.