Language Selection

English French German Italian Portuguese Spanish

Search and replace across many files with a perl one-liner

Filed under
HowTos

Hello nerdlings! Steve has gone jolly wild with perl this festive season. And to add to the spirit, here's a piece from me on how to do a search and replace across many files in one line of perl, for several kinds of cases:

  1. The good- the simple case

  2. The ugly - the multiple line case
  3. The bad - the stupid case
  4. Executive summary

Full Article.

More in Tux Machines

Openwashing

Games for GNU/Linux

Security News

Tablet review: BQ Aquaris M10 Ubuntu Edition

The Aquaris M10 is very much a first attempt for BQ and you would expect future iterations to have some significant improvements. It’s also hard to find compelling reasons why iOS or Android fans would want to switch over to an Ubuntu tablet, but those familiar with the operating system should be excited to finally have their needs met in the tablet market. One positive factor is that switching between tablet and desktop mode works very well for the most part, so can definitely fulfill professional needs as much as casual ones. This could be a viable option for someone who wants that flexibility and isn’t too fussed about some of the more superficial features. Read more