[clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread Ralph Boland
I can write simple bash shell scripts. For example recently I wrote the following: #/bin/bash if [ $# -eq 0 ]; then vi ~/Home/Personal/phone else grep $1 ~/Home/Personal/phone fi I would like to be stronger though so I have dug up some info from

Re: [clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread Dafydd Crosby
I cut my teeth on O'Reilly's Bash Cookbook. On 02/13/2012 11:49 AM, Ralph Boland wrote: I can write simple bash shell scripts. For example recently I wrote the following: #/bin/bash if [ $# -eq 0 ]; then vi ~/Home/Personal/phone else grep $1

Re: [clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread John Jardine
Hi Rocky, We all learn differently - I learn well from books, I just kind of file it all in my brain. You may want to read something like: Learning the BASH Shell: http://shop.oreilly.com/product/9780596009656.do or The Linux Command Line: http://shop.oreilly.com/product/9781593273897.do Then

Re: [clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread Shawn
For me the best learning tool is to have a specific need. Then after I figure out how to fill the specific need, I blog about what I learned to help gel my thoughts and make it sink in. Bash scripts are one of those overlooked awesome tools. You can do a LOT with em, though there are times

Re: [clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread caziz
one I find fun as you can do several versions for improved correctness, robustness and efficiency is find duplicate files in an input list and useful every once in awhile to boot version 01 for the input file list from $* just crank md5sum, sort and show list of matches exclude empty files

Re: [clug-talk] Cool laptop

2012-02-13 Thread Mel Walters
On Sun, 2012-02-12 at 23:08 -0700, TekBudda wrote: Now is it just me or does the music in teh video sound like a porn soundtrack? Not that I know what they sound like...ummm...a FRIEND told me. Do not know the answer to your question, sorry. For variety you could go to http://myrolltop.com

Re: [clug-talk] want to practice writing bash shell scripts

2012-02-13 Thread Gustin Johnson
Here is an idea. Traverse an arbitrary directory structure (not /) looking for files with an ampersand () in the file name, replace the ampersand with the word and. I will be tackling this myself later this week. We can compare solutions. On Mon, Feb 13, 2012 at 11:49 AM, Ralph Boland