Skip to content
Advertisement

How To replace leading zero with spaces in linux?

i have text like this

JavaScript

i want to the result like this

JavaScript

i have been searching all over and get no result, please help

Advertisement

Answer

With gawk you can use gensub:

JavaScript

Or same pattern with sed:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement