I have a file called diff.txt. I Want to check whether it is empty.
I wrote a bash script something like below, but I couldn\'t get it work.
[[ -f filename && ! -s filename ]] && echo "filename exists and is empty"