I'm trying to move all files in a directory that have less than X lines (in my case 6)
I tried :
find /path/folder/ -type f -exec awk -v lines=6 'NR>lines{f=1; exit} END{exit !f}' {} \; -exec echo mv output_folder/ {} \;
But it's not working, any files is moved. Any tips?