找到当前目录下无法正确转码的音乐列表文件并显示:
$ find . -name "*.cue" | while read line ; do iconv "$line" > /dev/null 2>/dev/null ||echo "$line" ; done
使用了 shell 的管道,输出重定向,错误输出重定向,逻辑或;找文件命令,shell 循环读行,转码命令。