我有一个脚本
#!/bin/sh
# Automatically remove a torrent and delete its data after a specified period of
# time (in seconds).
TARGET=/var/www/transmission/completed
USER=name
PASS=pass
BIN="/usr/bin/transmission-remote"
# The default is 5 minutes (in seconds).
CUTOFF=`expr 100 \* 3`
##############################################
### You shouldn't need to edit below here. ###
##############################################
# Tokenise over newlines instead of spaces.
OLDIFS=$IFS
IFS="
"
for ENTRY in `$BIN -n $USER:$PASS -l | grep 100%.*Done.*Finished`; do
# Pull the ID out of the listing.
ID=`echo $ENTRY | sed …Run Code Online (Sandbox Code Playgroud) 例如,如果我的视频有 3 个音频流:1 个英语、1 个德语、1 个立陶宛语。对于每个视频,它可以按随机顺序排列,如果我不知道女巫编号是立陶宛语音频,我将如何转换文件并仅选择立陶宛语?因此,对于一个视频,立陶宛语将是第三个音轨,而对于顺序,它将是第二个音轨,依此类推(随机)。