-
Use the sed -i command
sed -i.BAK 's|foo|bar|g' files # -i does in-place replacement perl -pi.bak -e 's|foo|bar|g' files # or perl -pi.bak -e 's|foo|bar|g' `find /pathname -name "filespec"`
Perl is the preferred way, but on some production system you must use the old good sed. For some tips on sed take a look to its faq. Another very powerful command is xargs. Xargs is a rapid聽 way to process files containing spaces, using聽 a聽 combo with find:
Read More -
Closure in Java: fast and nice!
Feb 26, 2010 路 4 min read en evergreen lang 路 closure functional-java functional-programming html http java 路I have decided to re-cook this subject, adding a my specialized Example also.
Let's start!
Read More -
Erlang: a lesson to learn...again!
Jun 25, 2015 路 5 min read en erlang evergreen featured knowledgebase lang 路 erlang good great-ideas 路Erlang is a great language.
[2019-UPDATE] Erlang 22 is OUT, so I wanna to come to the party!
On April 2015, Erlang father's聽Joe Armstrong give us a very interesting lesson I want to tell about.
There was a long thread titled "Erlang and Akka, The Sequel" on the erlang mailing list, reasoning about the need of some standard pattern on Promises and Future. A lot of JavaScript libraries deal about that (also jQuery has its implementation). I want to report the Joe Amstrong reply because it give us a very clear understanding on the reason Erlang is different and you should at least try it once.
Read More -
Test driven development is a beast to tame. I like TDD but in the past it was quite difficult to achive, at least in a pure-consultant approach with a "turn key" framework behind.
Read More