Suppose I use
find (some stuff) | wc -l
Then I have output like
14 file1.txt
29 file2.txt
32 file3.txt
1 tile4.txt
I'm completely new to Bash scripts but what I want to happen is that I can use this output right away after the command to write to another file. For example, if the count is greater than 10, I want to write "ALERT! Count for file#.txt is greater than 10!" in myotherfile.txt.
Thanks for any help