fork(3) download
  1. #!/bin/bash
  2. s="I really like @somecrazytwitterhandle; he's so cool!
  3. @somecrazytwitterhandle is the best!"
  4.  
  5. grep -Po '(?<!\S)@\w+' <<< "$s"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
@somecrazytwitterhandle
@somecrazytwitterhandle