I have syntax error in my code to move files if the statement is true.The code goes on forever.Also tried adding quotes but unable to.I know there would be some silly mistake that I am doing.
for file in *.sort;
do if [`wc -l` $i -eq 57817];
then mv "$i" "../$i";
fi; done
Any suggestions?