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

GNOME Software Package Manager App Updated for GNOME 3.16 to Fix Multiple Bugs

The GNOME Project released earlier today, August 3, the fifth maintenance release of the stable GNOME Software package manager application for the GNOME 3.16 desktop environment, a version that fixes seven issues. Read more

Linux Kernel 4.1.4 LTS Released with Numerous Updated Drivers, ARM64 Improvements

Today, August 3, Greg Kroah-Hartman announced the release and immediate availability for download of the fourth maintenance release of the stable, long-term supported Linux 4.1 kernel. Read more

Open-spec motor control kit runs Linux on Zynq SoC

Avnet’s revamped, Linux-based “ZIDK-II” kit for motor control combines its ZedBoard SBC, featuring an ARM/FPGA Zynq SoC, with improved Analog Devices gear. Avnet Electronic Marketing’s “Zynq-7000 All Programmable SoC/Analog Devices Intelligent Drives Kit II,” or “ZIDK-II,” is a major upgrade to a previously released kit of the same name, featuring an enhanced Analog Devices ” brushless DC motor control reference design. As before, the system is built around Avnet’s community-backed, Ubuntu Linux-based ZedBoard single board computer, which showcases the Xilinx Zynq-7020, a SoC that combines see farther below. Read more

today's leftovers