Andrew H.

asked • 01/25/21

combining two sed -s

$ sed s/,/' '/g file.txt| sed s/'\.'/,/g


I want to replace numbers into the SI format.

ex: 1,000,000.53 would become 1 000 000,53

, becomes ' ' and . becomes ,

Is there a way I can combine this?

1 Expert Answer

By:

Benjamin M. answered • 02/04/21

Tutor
New to Wyzant

BS Computer Science, Linux classes and experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.