alexkuklin: (Default)
[personal profile] alexkuklin
Объясните идиоту, почему конструкция


find -type f -iname "*.flac" | while read f; do name=`basename "$f" .flac`; dir=`dirname "$f"`; echo $name; ( [ ! -f "mp3/$name.mp3" ] && ffmpeg -ab 128k -i "$f" "mp3/$name.mp3" 2> /dev/null || true); done


выполняет только один раз ffmpeg, потом вылетает?

Date: 2008-05-02 01:21 pm (UTC)
arilou: (Default)
From: [personal profile] arilou
А как выглядит тот внешний цикл, который всё лечит?

Кстати, попутно (не по вопросу поста), если ты используешь -iname, то, наверное, опасаешься, что где-то расширение окажется .FLAC? а при вызове basename уже не опасаешься?

Profile

alexkuklin: (Default)
alexkuklin

January 2020

S M T W T F S
    1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 30th, 2025 01:10 pm
Powered by Dreamwidth Studios