Sluggers

This is driving me nuts, I've doen this before and do you think I can
drag the command out of my memory! What's the syntax in sed that puts 
the wild card expresion matched in the first side of the substitute back
in on the replace side?

EG

  echo " Hello To The World,\nGday to Oz,\nHi Sluggers," |
  sed 's/ .*,/#[]#/'
               ^^
 what goes in here to put what was matched by ".*" back into the replace
 string so the result of the above is

  Hello To The#World#
  Gday to#Oz#
  Hi#Sluggers#


MMTIA


Pete

S/MIME Cryptographic Signature

Reply via email to