Quantcast
Channel: conditional find output missing - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

conditional find output missing

$
0
0

Im trying to build a conditional statement to search for files of a certain size (in this case 1Gb.

if [ "find /location/sub/int/ -size +1G" ]
then
  > /location/sub/int/large_file_audit.txt
fi

I run this and it creates a file but the file is empty, how can I get the results of the find to populate into the file? what am I doing wrong?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images