Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法执行此命令
/test/filename_*; do $(wc -l "$file" | cut -d' ' -f1) -eq 1 && m $file ; done
它一直工作到昨天,不知何故这现在不起作用。
你确定你没有这个命令吗:
for file in /test/filename_*; do [ "$(wc -l "$file" | cut -d' ' -f1)" -eq 1 ] && rm "$file" ; done