In bash coding,
What to do is that if the grep size is less than 800MB i want to ignore but if grep size is more than 800MB, i want to print that path in file xyz/symlinks_paths.txt. but problem coming in else statement. Can you help me, i want to print that path whose size is more than 800MB in xyz/size_list.txt file. Also, line3 is a directory path.
while
    read -r line3
        do
            if [[ "ls -lh $line3 | grep zzz.exe | grep '[8-9][0-9][0-9][MG]'" = " " ]] 
                then break
                else line3 >> xyz/size_list.txt
            fi
        done < xyz/symlinks_paths.txt
 
     
    