Remember your pearls [was grep, maybe]

James R. Van Zandt jrvz at comcast.net
Mon Jan 18 12:11:32 EST 2010


(My email backlog is pretty long...)

I have several scripts in $HOME/bin or /usr/local/bin, but for
commands used in a particular directory, I usually just add the line
to a plain text file "cmd" in that directory.  Sometimes it will be
convenient to execute the whole file as a script, but more often I'll
"cat" to the screen, then cut and paste what I want.  For example, I
have a directory /debian/images where I put files related to burning
CDs.  I have a file "cmd" there with the appropriate commands for
mkisofs, cdrecord, wodim, growisofs, etc.  It's sort of a middle
ground between developing a fully working command script and just
reading the manpages.

          - Jim Van Zandt


   From: Ben Scott <dragonhawk at gmail.com>
   Date: Fri, 30 Oct 2009 08:32:46 -0400
   Content-Type: text/plain; charset="iso-8859-1"

   On Thu, Oct 29, 2009 at 11:01 PM, Greg Rundlett (freephile)
   <greg at freephile.com> wrote:
   > So, you've worked out a magnificent one-liner solution to a
   > interesting and recurring task.  How do you 'remember' your solution?

     They get saved in a file under $HOME/bin under an appropriate name,
   with appropriate comments.  Ideally, I turn them into a working
   "command" I can then use as needed.  (Occasionally they get turned
   into shell aliases or functions, if the mood strikes me.)

     Or I forget about them and have to re-invent the wheel next time. :)

   -- Ben

   _______________________________________________
   gnhlug-discuss mailing list
   gnhlug-discuss at mail.gnhlug.org
   http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/



More information about the gnhlug-discuss mailing list