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
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
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
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
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
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
6 matches
Mail list logo