2 ms·
> Oh, and that language switch from bash to python is a huge risk. I was thinking about that and I came up with sed 's/^0*//' as an alternative to the Pyth
by schoen 8y ago
> Oh, and that language switch from bash to python is a huge risk.
I was thinking about that and I came up with
sed 's/^0*//'
as an alternative to the Python program. Another option that works for the same purpose is
xargs -n1 expr 0 +
Edit: There's an earlier subthread with several options for this: https://news.ycombinator.com/item?id=19160875 https://news.ycombinator.com/item?id=19160875