Add Commas to Du Output Jul 14th, 2012 Note this requires GAWK Create commas.awk: 1 {printf "%d %s\n", $1, $2} Pipe du output through commas.awk: 1 2 $ du -sk | gawk -f commas.awk 38,522,624 .