History

replace sed with parameter expansions

Serge Zirukin committed 16 years ago

Commit cab9ddb1 parent 1bf58991 file · +3 −2Browse files

Unified · Split

split2flac.sh+3−2
@@ -36,8 +36,9 @@ NORENAME=0 · 35 unmodified lines
3636 NOPIC=0
3737 REMOVE=0
3838 PIC_SIZE="192x192"
39−FORMAT=$(echo $0 | sed 's/^.*2//;s/\..*//')
40−FORMAT=${FORMAT:-"flac"}
39+FORMAT=$(basename $0)
40+FORMAT=${FORMAT#split2}
41+FORMAT=${FORMAT%.sh}
4142
4243 # load settings
4344 eval $(cat "${CONFIG}" 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