help with sed

John Sellens jsellens-Iv5KO+h6AVB+Y12zHexnB0EOCMrvLtNR at public.gmane.org
Sat Jun 16 04:53:53 UTC 2007


|  lame %f `echo %f | sed 's/\\\\\\\\.wav$$//'`.mp3
| 
| What can I do to correct this commandline and keep using sed to remove
| ..wav from the end of the filename?

Don't know if you *have* to use sed - the more common
approach is this:

    lame %f `basename %f .wav`.mp3

or perhaps (depending on how %f works)

    lame "%f" `basename "%f" .wav`.mp3


John
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list