I need to get 88090000 after zeros. How can I do this with awk?
The number can be any number of zeros. But I need a number after zeros.
0000000088090000
I appreciate your help.
Just add 0.
$ awk '{ print $0 + 0 }' <<< '0000000088090000' 88090000
Using regular expressions:
echo '0000000088090000' | awk '{ sub(/^0+/, ""); print }'
One of the methods:
echo "0000000088090000" | awk '{ printf "%d\n", $0 }'
Using sed:
[jaypal:~/Temp] echo "0000000088090000" | sed 's/^0\+//g' 88090000
Source: https://habr.com/ru/post/1388213/More articles:Starting guidance during Capybara / Selenium test - jqueryHandling 302 redirects in Java - javaSparse Matrix: ValueError: matrix type must be 'f', 'd', 'F' or 'D' - scipyHow to resend or save session cookie - javaBasic data relationships are not stored in storage - iphoneWhat sound format is recommended for ipad / iphone applications? - iosWrite an algorithm for faster combinatorics - algorithmOpenSearch and Chrome document discovery - google-chromePython form submission - pythonReal-time JFrame height and width listening - javaAll Articles