I collect sox and lame to create a new music file, but in order to do everything on one line using pipes, it seems necessary to βmarkβ the boundaries of the output and input with the help of the character. I have inherited this code, so let me show you.
sox $DIRNAME/$BASENAME -e signed-integer -r 8000 -c 2 -t wav - trim $POSITIONS | lame -v -V4 --resample 8 - $DIRNAME/${NOEXT}.mp3
- between wav and trim is the output file, and - between --resample 8 and $DIRNAME/${NOEXT}.mp3 is the input file.
I am trying to find additional information about this, for example, is it possible to use any character, or if - is special. What is called and what makes it work?
source share