tungwaiyip.info

 

home

about me

links

my software

Media

Yucatán Photos

St Lucia Photos

Photo Album

Videos

Blog

< December 2003 >
SuMoTuWeThFrSa
  1 2 3 4 5 6
7 8 910111213
14151617181920
21222324252627
28293031   

past articles »

Click for San Francisco, California Forecast

San Francisco, USA

 

Bye bye Bash

Finally got rid of my backup script written in Bash and replaced it with a Python one. I have enough trouble dealing with Bash and I am not looking forward to use it again. Influenced by a passionate crowd, I started working with Linux enthusiastically one year ago. I came around to learn everything about Linux, Vi, Bash, anticipating that they would be great solution to many computing problems.

One of my project was to build a simple backup script using Bash and tar. I started to encounter problem in very basic operations. Thanks for the way Bash does globbing, I cannot easily specify file pattern for files under subdirectories. Tar has its own quirk that I have to hack with 3 different configuration files to setup an inclusion and exclusion list. I finally come to a revelation that should be obvious in retrospect, that many of 30 years old design around Unix are just archaic, difficult to use and error prone. I ditched Bash for a more modern Python. I am very happy since for the easy XML configuration and maintainability.

The lesson learned? Watch out for zealotries. Take their opinion with a grain of salt. They tend to oversold the upside and downplay any problem. Always discern things with critical eyes. This also applies many other areas to such as political opinions.

2003.12.22 [, ] - comments (0)

 

 

Comments (0)

past articles »

 

BBC News

 

Pinera sworn in as new quake hits (11 Mar 2010)

 

Iraq results point to tight race (11 Mar 2010)

 

Web censure 'curbs human rights' (11 Mar 2010)

 

Turkey and Sweden in genocide row (11 Mar 2010)

 

Russians jailed over race murder (11 Mar 2010)

 

Nigeria women protest at killings (11 Mar 2010)

 

Greeks stage fresh general strike (11 Mar 2010)

 

Biden tries to ease Mid-East row (11 Mar 2010)

 

Pink Floyd win EMI court ruling (11 Mar 2010)

 

US school prom axed as lesbian student asks to bring girlfriend (11 Mar 2010)

more »

 

Slashdot News for nerds, stuff that matters

 

William Shatner Takes On Social Networking (2010-03-11T23:22:00+00:00)

 

Researchers Beam 230Mb/sec Wireless Internet WIth LEDs (2010-03-11T22:38:00+00:00)

 

SolarPHP 1.0 Released (2010-03-11T22:18:00+00:00)

 

Best Smartphone Plan Covering US and Canada? (2010-03-11T21:54:00+00:00)

 

Pennsylvania CISO Fired Over Talk At RSA Conference (2010-03-11T21:07:00+00:00)

 

Half-Male, Half-Female Fowl Explain Birds' Sex Determination (2010-03-11T20:48:00+00:00)

 

T-Mobile's First HSPA+ Modem Goes On Sale Sunday (2010-03-11T20:24:00+00:00)

 

EMI Cannot Unbundle Pink Floyd Songs (2010-03-11T19:40:00+00:00)

more »

 

TechPsychic Tech Rumors and Invented News

 

TechPsychic: Android Apps. (11 Mar 2010)

 

TechPsychic: Why Google starts at ReadWriteWeb hosted With the other partners, Skype Hits 521 million funding from iPhone. (11 Mar 2010)

 

TechPsychic: He's Learned: Facebook Connect. (11 Mar 2010)

 

TechPsychic: Top paid for the FTSE 100, the future. (11 Mar 2010)

 

TechPsychic: Opera Software, Facebook During Apple's iPad Comes along, Windows Vista. (10 Mar 2010)

 

TechPsychic: JB: Why AT&T data plan? (10 Mar 2010)

 

TechPsychic: Apple announced on Twitter search web. (10 Mar 2010)

 

TechPsychic: Bing search, Intel, the end result of CEO of Vevo. (10 Mar 2010)

more »

 

SF Gate

 

Pleasanton brothers ran meth lab, cops say (2010-03-11T16:52:49UTC)

 

Supes skeptical about Newsom's layoff plan (2010-03-11T18:26:24UTC)

 

Going got tough, Newsom got outta here (2010-03-11T08:21:35UTC)

 

Crime lab fallout: Drug defendants go free (2010-03-11T13:56:43UTC)

 

Fire in S.F. burns 2 buildings (2010-03-11T19:14:07UTC)

 

Whitman takes heat for avoiding reporters (2010-03-11T19:13:52UTC)

 

Highway deaths drop to lowest level since 1950s (2010-03-11T20:45:00UTC)

 

Lesbian teen sues Miss. school over prom flap (2010-03-11T23:09:25UTC)

 

Stocks climb for 3rd day as financial shares rise (2010-03-11T22:56:50UTC)

 

Slowly, Americans are regaining their lost wealth (2010-03-11T22:56:50UTC)

 

Rates are mixed after strong 30-year bond auction (2010-03-11T22:56:49UTC)

 

Citigroup CEO says bank on path to profitability (2010-03-11T22:55:48UTC)

 

Watson says FDA approves 6-month dose Trelstar (2010-03-11T22:51:48UTC)

 

Xoma 4Q profit falls as contract revenue tumbles (2010-03-11T22:49:43UTC)

more »

 

Asia Times Online

 

ALL ROADS LEAD TO KABUL : India seeks a new direction (Thu 11 Mar 2010 19:00:00 +0700)

 

Iran wants help from a friend (Thu 11 Mar 2010 19:00:00 +0700)

 

China-US ties strained like never before (Thu 11 Mar 2010 19:00:00 +0700)

 

US, Indonesia in a tentative embrace (Thu 11 Mar 2010 19:00:00 +0700)

 

India's cyber-defenses full of holes (Thu 11 Mar 2010 19:00:00 +0700)

 

DISPATCHES FROM AMERICA : Premature withdrawal in Iraq (Thu 11 Mar 2010 19:00:00 +0700)

 

Sri Lanka locks horns with UN (Thu 11 Mar 2010 19:00:00 +0700)

 

Reqo Diq mine at melting point (Thu 11 Mar 2010 19:00:00 +0700)

 

Locks turn in Nabucco door (Thu 11 Mar 2010 19:00:00 +0700)

 

China lassoes its neighbors (Thu 11 Mar 2010 19:00:00 +0700)

 

Job creation squeezed (Thu 11 Mar 2010 19:00:00 +0700)

 

THE MOGAMBO GURU : Debt doom ahead (Thu 11 Mar 2010 19:00:00 +0700)

more »

 


Site feed Updated: 2010-Mar-11 16:15