Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264
Source Link
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?