From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 03 Mar 2004 01:02:17 +0000 Subject: RE: %c option does not handle LF as a seperator Message-Id: <1078275737.2393.24.camel@pim> List-Id: References: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com> In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E902036598@orsmsx409.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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 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_id56&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