Language Selection

English French German Italian Portuguese Spanish

Variable Mangling in Bash with String Operators

Filed under
HowTos

Have you ever wanted to change the names of many files at once? Or, have you ever needed to use a default value for a variable that has no value? These and many other options are available to you when you use string operators in bash and other Bourne-derived shells.

String operators allow you to manipulate the contents of a variable without having to write your own shell functions to do so. They are provided through "curly brace" syntax. Any variable can be displayed as ${foo} without changing its meaning. This functionality often is used to protect a variable name from surrounding characters.

Full Story.

More in Tux Machines

Phoronix on Graphics

OpenWRT Gets Forked By Some Of Its Own Developers As LEDE Project

While the OpenWRT project is a very well known embedded Linux distribution primarily for network devices, a number of their own developers have decided to fork away from the project. In what appears to be a move to have new project leaders, a group of OpenWRT developers announced LEDE, their fork of the project. LEDE considers itself a spin-off of OpenWRT with many of the same goals. LEDE is short for the Linux Embedded Development Environment. Read more

Leftovers: Ubuntu

  • How to Install Cinnamon 3.0 Desktop Environment in Ubuntu 16.04 LTS
  • Canonical Patches Multiple OpenSSL Vulnerabilities in All Supported Ubuntu OSes
    Today, May 3, 2016, Canonical has issued a new Ubuntu security notice to inform the community about the availability of new OpenSSL versions that patch various vulnerabilities discovered upstream by various developers. The OpenSSL security notice is valid for the Ubuntu 16.04 LTS (Xenial Xerus), Ubuntu 15.10 (Wily Werewolf), Ubuntu 14.04 LTS (Trusty Tahr), and Ubuntu 12.04 LTS (Precise Pangolin). It details a total of five security issues that have been fixed in OpenSSL, which contains the Secure Socket Layer (SSL) cryptographic library and tools.
  • Ubuntu In The Wild: April 2016
    You might not have noticed, but it’s been a wee while since we last featured an ‘Ubuntu in the Wild’ spot (excusing my little editorial last month). The gap isn’t because Ubuntu isn’t being spotlighted in projects. It was more that a couple of readers were vocal in telling us such articles were trivial and didn’t call for a post. So, for the past year or two we’ve been tweeting the odd Ubuntu in the Wild spot rather than posting a blog post about it.
  • Why Your Next Ubuntu Download Could Be a Lot Larger
    Expect to see a larger Ubuntu desktop installation image size by the time the Yakkety Yak is released later this year. Ubuntu Developers are currently discussing a new size limit for the main distribution image, as well those of the distribution’s official flavours.

Pie Message Brings iMessage to Android Devices!