From: Simon Gerber <sige-goEDY2E6dbVyDzI6CaY1VQ@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Need help with acpi event string splitting
Date: Thu, 09 Sep 2004 19:55:56 +0200 [thread overview]
Message-ID: <chq5fd$up8$1@sea.gmane.org> (raw)
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
reply other threads:[~2004-09-09 17:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='chq5fd$up8$1@sea.gmane.org' \
--to=sige-goedy2e6dbvydzi6cay1vq@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox