File: wav_mp3_sample.sh

package info (click to toggle)
vim-eblook 1.2.3%2Bgit20201111-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 240 kB
  • sloc: sh: 4; makefile: 3
file content (6 lines) | stat: -rwxr-xr-x 151 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
#!/bin/sh
# viewer script. rename .wav to .mp3 and play
file=$1
filemp3=$(echo "$file" | sed -e s/\.wav/.mp3/)
mv "$file" "$filemp3"
afplay "$filemp3"