Tuesday, April 13, 2010

bash notes

1. truncate filename: sample
for filename in *.exe
do
name=${filename%%.*}
extn=${filename##*.}

# doing operations...
done

Monday, April 12, 2010

First they came...

"First they came ..." is a popular poem attributed to Pastor Martin Niemöller (1892–1984) about the inactivity of German intellectuals following the Nazi rise to power and the purging of their chosen targets, group after group. In Niemöller's first utterance of it, in a January 6, 1946 speech before representatives of the Confessing Church in Frankfurt, it went (in German):

"THEY CAME FIRST for the Communists,
and I didn't speak up because I wasn't a Communist.

THEN THEY CAME for the Jews,
and I didn't speak up because I wasn't a Jew.

THEN THEY CAME for the trade unionists,
and I didn't speak up because I wasn't a trade unionist.

THEN THEY CAME for the Catholics,
and I didn’t speak up because I was a Protestant.

THEN THEY CAME for me
and by that time no one was left to speak up."