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

 

UN agrees DR Congo troop increase

 

No agreement for US car bail-out

 

'Experts' lead Saudi tanker talks

 

Hebron settlers desecrate mosque

 

US warned of China 'cyber-spying'

 

US judge orders Algerians freed

 

Colombian scam suspect extradited

 

Arab plan explained in Hebrew ads

more »

 

Slashdot News for nerds, stuff that matters

 

Unix Dict/grep Fixes Left-Side-of-Keyboard Puzzle (2008-11-20T22:40:00+00:00)

 

Kaminsky Bug Options Include "Do Nothing," Says IETF (2008-11-20T21:46:00+00:00)

 

Search For the Tomb of Copernicus Reaches an End (2008-11-20T21:00:00+00:00)

 

Apple DMCAs iPodHash Project (2008-11-20T20:18:00+00:00)

 

Network Neutrality — Without Regulation (2008-11-20T19:32:00+00:00)

 

Lessig, Zittrain, Barlow To Square Off Against RIAA (2008-11-20T18:47:00+00:00)

 

Study Recommends Online Gaming, Social Networking For Kids (2008-11-20T18:02:00+00:00)

 

CRTC Rules Bell Can Squeeze Downloads (2008-11-20T17:21:00+00:00)

more »

 

SF Gate

 

Calif. trains collide; no major injuries reported (20 Nov 2008)

 

Dems delay auto bailout vote, seek plan from Big 3 (20 Nov 2008)

 

Dems: Napolitano emerges for Homeland Security job (20 Nov 2008)

 

Pakistan protests to US over deep missile strike (20 Nov 2008)

 

Judge orders release of 5 terror suspects at Gitmo (20 Nov 2008)

 

Calif. cities consider green alternatives to lawns (20 Nov 2008)

 

Bay Area home prices dive, sales soar (20 Nov 2008)

 

Jobless claims jump unexpectedly to 16-year high (20 Nov 2008)

 

Dems are postponing crucial vote on auto bailout (20 Nov 2008)

 

APNewsAlert (20 Nov 2008)

 

Farming company offers to buy US Sugar (20 Nov 2008)

 

More than 5,000 Boise St. fans in Reno for weekend (20 Nov 2008)

 

The year 2025: Oil, dollar out; Russia, Islam in (20 Nov 2008)

 

Regulating swap transactions blamed for meltdown (20 Nov 2008)

more »

 

Asia Times Online

 

Tokyo itches to take on pirates (20 Nov 2008)

 

China all at sea off Africa (20 Nov 2008)

 

The jolly life of a pirate ring (20 Nov 2008)

 

The US strikes deeper in Pakistan (20 Nov 2008)

 

UMNO has stubborn staying power (20 Nov 2008)

 

Syria and Britain all ears now (20 Nov 2008)

 

Tibet movement veers from 'middle way' (20 Nov 2008)

 

China serves up mega-buck banquet (20 Nov 2008)

 

SPEAKING FREELY : The evil of the US dollar (20 Nov 2008)

 

TARP flip-flop true to form (20 Nov 2008)

 

Bankruptcy is key for Detroit survival (20 Nov 2008)

 

THE MOGAMBO GURU : Fed up with Fed credit (20 Nov 2008)

more »

 


Site feed Updated: 2008-Nov-20 14:15