~jbernard/+junk/byobu-disk-fix

« back to all changes in this revision

Viewing changes to bin/disk

  • Committer: Jon Bernard
  • Date: 2009-12-15 20:18:31 UTC
  • Revision ID: bernardj@gmail.com-20091215201831-2zwv1kxqzdlaeyle
bin/disk: add missing '%'

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
esac
34
34
 
35
35
disk=$(df -h -P "$MP" 2>/dev/null || df -h "$MP")
36
 
disk=$(echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "%d%sB,%d%", $1, $2, $3}')
 
36
disk=$(echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "%d%sB,%d%%", $1, $2, $3}')
37
37
printf "$(color M W)%s$(color -) " "$disk"