-5

我无法执行此命令

/test/filename_*; do $(wc -l "$file" | cut -d' ' -f1) -eq 1  && m $file ; done

它一直工作到昨天,不知何故这现在不起作用。

4

1 回答 1

2

你确定你没有这个命令吗:

for file in /test/filename_*; do [ "$(wc -l "$file" | cut -d' ' -f1)" -eq 1 ] && rm "$file" ; done
于 2020-06-26T11:21:33.787 回答