History

simplify sed regexp

Serge Zirukin committed 16 years ago

Commit bb962931 parent ce132fd1 file · +1 −2Browse files

Unified · Split

split2flac.sh+1−2
@@ -127,8 +127,7 @@ if [ -z "${CUE}" ]; then · 126 unmodified lines
127 CUE="${FILE%.*}.cue"127 CUE="${FILE%.*}.cue"
128 if [ ! -r "${CUE}" ]; then128 if [ ! -r "${CUE}" ]; then
129 # try to extract internal one129 # try to extract internal one
130 # MacOSX sed doesn't have 'I' (case insensitive) flag!130 CUESHEET=$(${METAFLAC} --show-tag=CUESHEET "${FILE}" 2>/dev/null | sed 's/cuesheet=//;s/CUESHEET=//')
131 CUESHEET=$(${METAFLAC} --show-tag=CUESHEET "${FILE}" 2>/dev/null | sed 's/[Cc][Uu][Ee][Ss][Hh][Ee][Ee][Tt]=//')
132 131
133 if [ -z "${CUESHEET}" ]; then132 if [ -z "${CUESHEET}" ]; then
134 CUESHEET=$(wvunpack -q -c "${FILE}" 2>/dev/null)133 CUESHEET=$(wvunpack -q -c "${FILE}" 2>/dev/null)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t