Re: WinAmp: MP3s aus der Liste kopieren?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Joachim Thomas schrieb:


NOCH EINFACHER geht´s mit "sed":

http://www.cornerstonemag.com/sed/

sed "s/L:\MUSI/G:\MP3_Sammlung/g" < alte_Liste.m3u > neue_Liste.m3u

Hab´ mal ins Handbuch von DOS-sed geschaut - demnach müßte se hier
wohl lauten:

sed "s|L:\\MUSI|G:\\MP3_Sammlung|g" alte_Liste.m3u > neue_Liste.m3u

d.h., als Trenner dient Pipe " |", und die Backslashes müssen immer
verdoppelt werden..wie in Perl..


Schöne Grüsse


Joachim Thomas

.



Relevant Pages

  • Re: Broken pipe problem? If so, why?
    ... > message, reads the header, does some processing, and exits. ... > I am invoking this program in a pipe from procmail. ... Since your Perl program is only reading the header, ...
    (comp.lang.perl.misc)
  • Re: Odd tcsh behaviour: subshells & stdout
    ... pipe for future reference. ... perl is not run in a subprocess of the subshell) ... there's no preserving of fd 1 (no subshell ... it's the normal processing of a pipeline). ...
    (comp.unix.shell)
  • Re: Safe Pipe Open question
    ... "Safe Pipe Open", and my reference for this is: ... closeor die "Cannot close logfile!\n"; ... Your code works perfectly for me (Mac OS 10.4, perl 5.8.6), although I ... A relly big file can caue I/O errors? ...
    (comp.lang.perl.misc)
  • Re: Strange Bash behavior
    ... In bash, commands following a pipe are executed in a subshell, with all ... somecond1 {fail++} ... if I have perl in front of the pipe I'd write the whole awk thing in perl ...
    (comp.unix.shell)
  • Re: piping and reading stdin
    ... Subject: piping and reading stdin ... I want to read from a pipe in my perl script invoked like: ...
    (perl.beginners)