Skip to main content
1 of 2
pbies
  • 524
  • 4
  • 16

Bash string range and replace

To print part of the string, replace , with . I use command:

echo "${q:16:6}" | sed 's/,/./'

Is it possible to use something like:

echo "${q:16:6/,/.}"

because it does not work?

pbies
  • 524
  • 4
  • 16