In bash there are different ways to manage ASCII codes. The echo command with option -e recognizes octal sequences, for example
prints out the character W. You can also assign a character to a variable given its octal code, for example
will assign the character W to the variable var, or you can use this syntax directly in comparisons.
Anyway, for your specific problem you can simply do something like
Code:
du -s $dir | cut -d\t -f1
du -s $dir | awk '{print $1}'