fork download
  1. #!/bin/bash
  2. voc="love story"
  3. loveStory="read about new love story"
  4. words="$(grep -oE '\b[[:alpha:]]+\b' <<< "$voc" | tr '\n' '|' | sed 's/|$//')"
  5. diff="$(sed -E "s/\b($words)\b//g" <<< "$loveStory")"
  6. grep -oE '\b[[:alpha:]]+\b' <<< "$diff"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
read
about
new