Language Selection

English French German Italian Portuguese Spanish

Linux quicktip - find and replace from the command line using sed

Filed under
HowTos

If you’ve ever had to modify files on your Linux system and simply change a word or two, there’s a fast and simple way to do this using sed.

Say you want to change your sources.list file to go from Ubuntu 6.06 (Dapper) to 6.10 (Edgy). You can do this with a one line command using sed.

sudo sed -i ’s/dapper/edgy/g’ /etc/apt/sources.list

You’ve just replaced all of your instances of the word ‘dapper‘ with ‘edgy‘.

You can also combine the sed command with the find command for a pretty powerful find and replace.

Full Story.

More in Tux Machines

Early Week in Techrights

Microsoft EPO Links

Arch Linux 2015.04.01 Is Now Available for Download

Another month, another ISO image of one of the most acclaimed distributions of GNU/Linux, Arch Linux, is now available for download, today, April 1, 2015. Arch Linux is a highly customizable, powerful, and lightweight computer operating system with a rolling-release model. Read more

Why open source and enterprise users are natural allies

Open source software and enterprise users are natural allies. For example, at HotWax Systems, enterprise users are our focus customers, and open source software is at the core of the capabilities we deliver. Even though enterprise users are our customers, HotWax Systems benefits by nurturing and supporting the Apache Software Foundation and by sharing our product development efforts with the open source community. We support, and our CTO chairs, the project management committee for Apache OFBiz, and we employ a large number of core committers to the OFBiz project. Read more

Debian Will Continue to Provide Support for the MIPS Architecture

The Debian distribution provides support for numerous processor architectures and it's one of the most prolific in this area. It looks like MIPS support will continue to be offered by the Debian maintainers after the developers get their hand on some new MIPS-powered hardware. Read more