3 ms·
I always titter when I see arithmetic in shell operations. In Python, one would merely do: export mynumber="+4912341234123" python3 -c "import pip; pi
by tetris11 3y ago
I always titter when I see arithmetic in shell operations.
In Python, one would merely do:
export mynumber="+4912341234123"
python3 -c "import pip; pip.main(['install', 'phonenumbers']); \
import phonenumbers; x = phonenumbers.parse(\"$mynumber\", None); \
x.national_number = x.national_number + 1; \
print(x)"
Just plain and simple, really.