fork(3) download
  1. #!/bin/bash
  2. s='Hello word.'
  3. awk '{sub(/[[:punct:]]+$/, "", $2);print "#"$2}' <<< "$s"
Success #stdin #stdout 0s 23336KB
stdin
Standard input is empty
stdout
#word