I would like to store the size of a directory to a variablesize=$(du foo_bar) | awk '{print $1}';echo $sizeProduces a blank output. Whats wrong with above lines of code?
bash: storing size of directory to a var
bash;shell