fork(1) download
  1. #!/bin/bash
  2. s='* feature/test'
  3. echo $(grep -oP '^\*\s*\K[a-zA-Z]+' <<< "$s")
  4. sed 's/[^a-zA-Z]*\([a-zA-Z][a-zA-Z]*\).*/\1/' <<< $s
Success #stdin #stdout 0s 4432KB
stdin
Standard input is empty
stdout
feature
feature