我试图构建一个条件语句来搜索特定大小的文件(在本例中为 1Gb。
if [ "find /location/sub/int/ -size +1G" ] then > /location/sub/int/large_file_audit.txt fi
我运行它并创建一个文件,但该文件是空的,如何将查找结果填充到文件中?我究竟做错了什么?
command-line bash find
bash ×1
command-line ×1
find ×1