-
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 -
If you need to work on cluster, is nice to have syncronized terminals to send the same commands in parallel.
Read More -
Dynamic languages troubles
Jan 30, 2008 路 3 min readblog-objectsrootcom en software 路 again ant api arc build business car code complex database design easy eclipse example fix hard hosting http ibm import java lion microsoft perl php plugin project projects python ruby simple small smalltalk sql system tools trouble ui unix war web world路I have read http://www.manageability.org/blog/stuff/chandler-failure and I think it is very danger way of exposing concepts.
Read More -
After my past experience with bad hosting provider, I am happy to say I have find a very good hosting service. If you need VPS hosting, Rimuhosting is a very good choice.
Read More -
Working for a very big customer, I found a very nasty interaction between Sun HttpClient (JDK 1.4) and Http聽 Load Balancers.
Read More -
Quick Look is a package to collect system statistics and output pretty graphics and (X)HTML pages. It allows system administrators to have a quick look on the status of their systems, without going for a more advanced (and heavier) solution.
Quick Look currently shows…
Read More -
To convert an Emacs buffer from DOS line endings to Unix, type C-x [ENTER] f unix [ENTER].
Read More -
Fare il cloud da zero: cloudStorm
Aug 9, 2010 路 3 min read 路A Gioorgi.com ci siamo gi脿 occupati di argomenti prettamente sistemistici come la virtualizzazione di ambienti Unix. Visto il successo del Cloud Computing, abbiamo pensato di tornare sull’argomento.
In questo articolo mostrer貌 come creare insieme di macchine configurate in modo omogeno, con il minor effort sistemistico possibile. Si tratta di un primo esercizio molto semplice.
Seguiteci…
Read More -
Bash scripting has evolved a lot in the last ten years.
I get used to relay on bash for all normal “data domination” tasks (like file system refactorings, database extraction and reporting and so on) and switching to python/ruby/perl when the complexity gets bigger. I didn’t imagine bash is even more powerful :) This article by Robert Muth so you new nice tricks: I聽 add here some other like mapfile and stress the most important one.
Update 2016 Last but not least,if you do now know about bash history, this link will teach you a huge set of tricks Updated 2019 Bash Bible will further extend the topic.
Read More -
Debian perfect work environment
Sep 28, 2014 路 3 min read 路Working in a big company, my work laptop came with MS-Windows7 Enterprise installed. But as you imagine, Unix is my preferred desktop environment. So let’s how to configure a perfect Debian Linux for a old wolf consultant like me. You will be able to install commercial software mubmo jumbo like Oracle Express and IBM Websphere in a snap, and have a 64 rock solid system, easy to bring in a USB stick if you like.
Read More