Try: find -iname "*.txt" -exec sh -c 'for f do basename -- "$f" .txt;done' sh {} + Your first command failed, because $(...) run in subshell, which treat ...
確定! 回上一頁