小编Sha*_*war的帖子

条件查找输出丢失

我试图构建一个条件语句来搜索特定大小的文件(在本例中为 1Gb。

if [ "find /location/sub/int/ -size +1G" ]
then
  > /location/sub/int/large_file_audit.txt
fi
Run Code Online (Sandbox Code Playgroud)

我运行它并创建一个文件,但该文件是空的,如何将查找结果填充到文件中?我究竟做错了什么?

command-line bash find

3
推荐指数
1
解决办法
165
查看次数

标签 统计

bash ×1

command-line ×1

find ×1