fork download
  1. #!/bin/bash
  2. s='123.456.789.01'
  3. s="${s%.*}."
  4. echo "$s"
Success #stdin #stdout 0.01s 5424KB
stdin
Standard input is empty
stdout
123.456.789.