Wednesday, October 10, 2018

Find all the Replace by Chaining ack output to sed

From the command line, I was able to replace Bootstrap 3 classes with Bootstrap 4 class using
ack, sed and xargs. 
 
ack "search text" -l --print0 | xargs -0 -n 1 sed -i "s/search text/replacement text/"
 
Reference:
 
Sed recursively with the help of ack and xargs
 

Sunday, October 07, 2018

Top 3 Lessons from Successful Open Source Projects

  1. Every good work of software starts by scratching a developer's personal itch.
  2. Good programmers know what to write. Great ones know what to rewrite (and reuse).
  3. Smart data structures and dumb code works a lot better than the other way around.
Linux was not written from scratch. Linus Torvalds took the Minix as the starting point. It is easier to start from a good partial solution. Minix provided the scaffold and eventually the Minix code was either rewritten or deleted. Read more at Cathedral Bazaar