On Mon, Aug 16, 2004 at 04:52:40PM +1000, John Clarke wrote: > On Mon, Aug 16, 2004 at 04:42:40PM +1000, Alexander Samad wrote: > > > echo "01 02" | sed -ne 's/\(\d*\) \(\d*\)/\2 \1/p' > > > > but it doesn't print out 02 01, if I change \d for \w I do get 02 01, > > Try changing '\d' to '[0-9]'.
okay that worked, but why ? I thought \d was any digit, do I need to escape of the \ to \\d ? > > > Cheers, > > John > -- > On the contrary, I think the only way a true sysadmin can drag himself > into work day after day is if he really believes, to the bottom of his > black little heart, that It Can't Possibly Get Any Worse. Or perhaps you > meant something rather different by "optimist"? -- J.D. Baldwin > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html >
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
