On Sun, Aug 22, 2010 at 11:39:02PM +0200, Cristian Ionescu-Idbohrn wrote:
This is one example:
lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed
-e 's/ *$//'`
Save a fork and a pipe by simply:
bios_version=$(sed -re 's/[[:blank:]]+*$//'
On Mon, 15 Nov 2010, Michael Meskes wrote:
On Sun, Aug 22, 2010 at 11:39:02PM +0200, Cristian Ionescu-Idbohrn wrote:
This is one example:
lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed
-e 's/ *$//'`
Save a fork and a pipe by simply:
Is the intention to remove horisontal whitespace occurence, at the
enf-of-line, or something else?
I have no idea to be honest, you'd better ask upstream for this kind of detail.
That would be quite a few patches :)
Or just one with all the changes.
Lots of scripts. Any particulary
Package: acpi-support
Version: 0.137-5
Severity: normal
This is one example:
lib/device-funcs:6:bios_version=`cat /sys/class/dmi/id/bios_version|sed -e
's/ *$//'`
Save a fork and a pipe by simply:
bios_version=$(sed -re 's/[[:blank:]]+*$//' /sys/class/dmi/id/bios_version)
This is
4 matches
Mail list logo