English
Only 4% of this world…
0That’s on much I saw about planet earth….
create your own visited countries map
I cannot wait to have even more vacation to visit the rest
Bulk replace with perl
0There is a very cool set of options in perl that allows you to replace a string in a file.
perl -pi -e ‘s/str1/str2/g’ file
and when you need it for a full directory, it becomes even more powerful
for i in *; do perl -pi -e ‘s/str1/str2/g’ $i; done
And the ultimate option, perl -pi.bak [...] which backup the old version of the file with the extension “.bak”.
I knew this option since a while, but I never remember it… so when I need it, I always have to look right and left to find it again… Now it’s blogged!
Read Line ‘n’ of a file with sed
0sed has some options that are not really known, but that are so useful
Print line 10 of a file:
sed -n 10p file
Print last line of a file:
sed -n \$p /etc/passwd
Print every other lines:
sed -n 1~2p /etc/passwd
And much more… So sometimes it’s interesting to RTFM
#include tree dependency
0I just found a set of cool options in gcc.
gcc -E -H -dI …foo.c
It gives you the tree of #include done from foo.c
My 100th Jump
1I did my 100th jump and Tall Guy took care of the video. You can download it from here:
http://skydive.happycoders.org/Samuel100.wmv
Some picture of me being pied are also available:
– ![]()
Hello world!
0I finally decided to take a look at blog… I needed a webpage to quickly publish my skydiving experience… so here we are!
