* Need help with acpi event string splitting
@ 2004-09-09 17:55 Simon Gerber
0 siblings, 0 replies; only message in thread
From: Simon Gerber @ 2004-09-09 17:55 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Dear listreaders
I have a minimal default.sh that used to configure what the acpi events
do trigger.
#!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
group=${1/\/*/}
action=${1/*\//}
My problem now is that I would like to extend those filter, but I don't
know how.
My event that I would like to parse looks like this:
ibm/hotkey HKEY 00000080 00001003
I'd like to have a expression that returns the last for digit if the
group corresponds to ibm and action to hotkey.
hotkeynr=${???}
I tried to write a pcre but I lack the knowledge or it's not a pcre that
's used here so if someone could point me it would be nice.
Greetings Simon
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-09 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 17:55 Need help with acpi event string splitting Simon Gerber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox