Walt Mankowski on 31 Aug 2010 09:18:29 -0700 |
On Tue, Aug 31, 2010 at 12:11:50PM -0400, linc wrote: > Walt Mankowski wrote: > >On Tue, Aug 31, 2010 at 12:03:49PM -0400, linc wrote: > >>DOH! Yeah, you are right. Have to use something like: > >> > >>sed 's/.CEL//' filename > newfile > >>instead... > > > >That's still not quite right. You should escape the period and anchor > >the end of the string. This is better: > > > >sed 's/\.CEL$//' filename >newfile > > Seems to work fine without that?? Try it on fooCELbar.CEL I mean, there's a good change that all the instances of CEL occur at the ends of the filenames, but why take a chance? Walt Attachment:
signature.asc ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|