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

Controversy is a state of prolonged public dispute or debate

Charlotte vs Georgia State Live Streaming

Alcatel built a 17-inch Android tablet for your kitchen

Alcatel wants its new 17.3-inch Xess tablet to be a multipurpose hub for the family, providing recipes in the kitchen, films in the living room, and a digital whiteboard for to-do lists and upcoming events. However, the severely underpowered Android device doesn't seem to be capable of entertaining even a single individual, let alone a whole household. The device has a fine 1920 x 1080 display, but an unspecified 1.5 GHz processor and 2GB of RAM mean that even swiping through pages of apps becomes a chore as icons are dragged slowly across the screen. Alcatel has stressed that the Xess is still a prototype at this stage, but it's in need of some serious upgrades. Read more

Elive 2.6.10 beta released

The Elive Team is proud to announce the release of the beta version 2.6.10 Read more

Second openSUSE 42.1 Leap Milestone Has Linux Kernel 4.1.6, Libreoffice 5.0, More

The openSUSE Project, through Douglas DeMaio, has announced the immediate availability for download and testing of the second Milestone build towards the openSUSE 42.1 Leap operating system. Read more