I want to get size of file into variable ? How to do that?
ls -l | grep testing.txt | cut -f6 -d' '
gave the size but how to store it in shell variable?
filesize=$(stat -c '%s' testing.txt)
2.1m questions
2.1m answers
60 comments
57.0k users