I want to insert periods as thousands separators using sed. How can I do that?
Sample imput/output:
29371923471239 -> 29.371.923.471.239
|
|
|
Try this
This works by splitting the number into two parts, the last 3 digits and everything else. It then adds a
|
|||
|
|
|
USE GHC-ONELINERS FOR A GREAT GOOD
! |
||||
|
|
|
From: http://www.linuxtopia.org/online_books/linux_tool_guides/the_sed_faq/sedfaq4_007.html
|
|||||
|