26Jul/18

bash convert number to have thousands seperator – Linux & FreeBSD

Convert a number like 10001 to 10,001 FreeBSD

or

LINUX From this article: https://unix.stackexchange.com/questions/113795/add-thousands-separator-in-a-number

example:

The end

06Sep/16

Sed replace new line with any text

Source: http://stackoverflow.com/questions/1251999/how-can-i-replace-a-newline-n-using-sed Replace with space: Use this solution with GNU sed:

Here is cross-platform compatible syntax which works with BSD sed (FreeBSD 8 confirmed):

Replace with double dash: Use this solutionRead More…