0

I try to understand this bash code :

$ var=00.00
$ echo ${var#0}
0.00

It seems that #0 can be used to truncate the end of var but I never saw this notation in bash documentation : https://www.gnu.org/software/bash/manual/bash.html

Anybody can tell me what #0 is exactly ?

Thx!

Autechre
  • 171
  • 7

0 Answers0