I am using Putty with bash-4.2. Therein, I am outputting file size with:
du -m myfile.csv
which returns:
1.25 myfile.csv
How do i store this line in a variable so I can later parse out the filesize?
Thanks in advance
Like so
FOO="$(du -m myfile.csv)" echo "$FOO"
Output
Like so
Output