Number formatting in BASH with thousand separator December 31, 2023 by Tarik $ printf "%'.3f\n" 12345678.901 12,345,678.901