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

 

US eyes chance for Mid-East peace (09 Mar 2010)

 

Indian MPs approve women's bill (09 Mar 2010)

 

Prince fined over Kenya assault (09 Mar 2010)

 

Raids 'kill Indonesia militants' (09 Mar 2010)

 

Burma refugees 'face starvation' (09 Mar 2010)

 

Hard drive evolution could hit XP (09 Mar 2010)

 

'Ransom bid' in Cyprus body theft (09 Mar 2010)

 

US seeks Nigeria massacre trial (09 Mar 2010)

 

Chameleon's tongue beats the cold (09 Mar 2010)

 

Porn domain name plan resurrected (09 Mar 2010)

more »

 

Slashdot News for nerds, stuff that matters

 

Apple's iPhone Developer License Agreement Revealed (2010-03-09T14:40:00+00:00)

 

US Immigration Bill May Bring a National Biometric ID Card (2010-03-09T13:56:00+00:00)

 

50% Efficiency Boost From New Fuel Injection System (2010-03-09T13:14:00+00:00)

 

Making Sense of CPU and GPU Model Numbers? (2010-03-09T10:20:00+00:00)

 

NSA Still Ahead In Crypto, But Not By Much (2010-03-09T07:22:00+00:00)

 

Jobs Says No Tethering iPad To iPhone (2010-03-09T04:31:00+00:00)

 

Why Microsoft Can't Afford To Let Novell Die (2010-03-09T02:37:00+00:00)

 

AIDS Virus Can Hide In Bone Marrow (2010-03-09T00:42:00+00:00)

more »

 

TechPsychic Tech Rumors and Invented News

 

TechPsychic: Disclosure and as CEO job, NSFW. (09 Mar 2010)

 

TechPsychic: The HP Shows in the Nexus One Facebook iPhone iTunes link. (08 Mar 2010)

 

TechPsychic: Subscription rates, engineers, Socialcast which ended the Web Spends 8 Billion. (08 Mar 2010)

 

TechPsychic: Bing lets brands, is a long time. (08 Mar 2010)

 

TechPsychic: Twitter: Twitter's Chirp Conference: Job. (08 Mar 2010)

 

TechPsychic: Android Apps Bloom - a Hulu CEO David Rusenko says Twitter is. (07 Mar 2010)

 

TechPsychic: Microsoft CEO Talks The Future. (06 Mar 2010)

 

TechPsychic: Apple announced a beta Launch a status online is trying to which has. (06 Mar 2010)

more »

 

SF Gate

 

Proposed initiative aims at Muni drivers' pay (2010-03-09T08:07:24UTC)

 

Presented By: (09 Mar 2010)

 

Sixth Street says ooh la la to Passion Cafe (2010-03-09T08:22:54UTC)

 

Stanford considers bringing ROTC back (2010-03-09T08:07:29UTC)

 

Exploratorium gets million to prep for move (2010-03-09T08:22:54UTC)

 

Dad accused of shaking wailing baby to death (2010-03-09T08:07:13UTC)

 

Tow truck in S.F. rolls away, damages 10 cars (2010-03-09T08:07:04UTC)

 

Oscars 2010: Historic win for 'Hurt Locker' (2010-03-08T14:02:26UTC)

 

EU warns US against protectionism in Pentagon deal (2010-03-09T14:53:33UTC)

 

Amazon cuts off Colo. affiliates because of tax (2010-03-09T14:51:33UTC)

 

Stocks fall early on 1-year anniversary of low (2010-03-09T14:46:29UTC)

 

EU APNewsAlert (2010-03-09T14:38:29UTC)

 

Probe of PG&E meters to begin soon (2010-03-09T14:30:29UTC)

 

WuXi PharmaTech moves to 4th-quarter profit (2010-03-09T14:25:27UTC)

more »

 

Asia Times Online

 

Marjah, the city that never was (Tue 9 Mar 2010 19:00:00 +0700)

 

THE ROVING EYE : Oscar night in Baghdad (Tue 9 Mar 2010 19:00:00 +0700)

 

Atrocities may fill Iraqi power vacuum (Tue 9 Mar 2010 19:00:00 +0700)

 

SUN WUKONG : Limp arm of the body politic (Tue 9 Mar 2010 19:00:00 +0700)

 

'Bless you Mr Obama' on Myanmar (Tue 9 Mar 2010 19:00:00 +0700)

 

COMMENT : Alternative reading of Hamas murder (Tue 9 Mar 2010 19:00:00 +0700)

 

Politicians in bed with India's 'pimp gurus' (Tue 9 Mar 2010 19:00:00 +0700)

 

South Korea back on track (Tue 9 Mar 2010 19:00:00 +0700)

 

US ponders China's Southeast Asian rise (Tue 9 Mar 2010 19:00:00 +0700)

 

The great game - asset-trader style (Tue 9 Mar 2010 19:00:00 +0700)

 

THE BEAR'S LAIR : Accelerator jammed (Tue 9 Mar 2010 19:00:00 +0700)

 

THE MOGAMBO GURU : Supply-side madness (Tue 9 Mar 2010 19:00:00 +0700)

more »

 


Site feed Updated: 2010-Mar-09 07:15