linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: RE: %c option does not handle LF as a seperator
Date: Wed, 03 Mar 2004 01:02:17 +0000	[thread overview]
Message-ID: <1078275737.2393.24.camel@pim> (raw)
In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com>

On Wed, 2004-03-03 at 01:46, Kay Sievers wrote:
> On Wed, 2004-03-03 at 01:36, Sabharwal, Atul wrote:
> >  > Greg,
> > > 
> > > There is a problem with %c as it only accepts the space de-limitted
> > > fields. The last
> > > Field may be <LF> delimitted rather than space de-limitted. 
> > > 
> > > I am not able to reference the last field. My rules is like
> > > 
> > > BUS="scsi", PROGRAM="/sbin/scsi_id", RESULT="SSEAGATE ST318436LW
> > > 3BM07NKA000070456Z6B", 
> > >   NAME="disk-sda-%c{3}"
> > > 
> > > %c{1} & %c{2} options in NAME key work fine. %c{0} gives whole string
> > > and %c{3} does not work
> > > Although it should return the serial number.
> 
> You may try:
> 
>   RESULT="SSEAGATE ST318436LW?3BM07NKA000070456Z6B"
> 
> or
> 
>   RESULT="SSEAGATE ST318436LW*3BM07NKA000070456Z6B"

Sorry, I didn't see that you want to use the serial number in
the node name. With the model name prepended it may work,
but sure that's not really the same :)

I will look if I can do something for you with the %c{num} logic.

thanks,
Kay



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2004-03-03  1:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03  0:36 %c option does not handle LF as a seperator Sabharwal, Atul
2004-03-03  0:42 ` Greg KH
2004-03-03  0:46 ` Kay Sievers
2004-03-03  0:51 ` Sabharwal, Atul
2004-03-03  1:02 ` Kay Sievers [this message]
2004-03-03  1:06 ` Sabharwal, Atul
2004-03-03  1:14 ` Patrick Mansfield
2004-03-03  1:23 ` Sabharwal, Atul
2004-03-03  1:32 ` Sabharwal, Atul
2004-03-03  1:59 ` Kay Sievers
2004-03-03  2:28 ` Sabharwal, Atul
2004-03-04 12:05 ` Hannes Reinecke
2004-03-04 22:51 ` Patrick Mansfield

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=1078275737.2393.24.camel@pim \
    --to=kay@vrfy.org \
    --cc=linux-hotplug@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).