fork download
  1. #!/bin/bash
  2. read -r one two three four <<< $(printf "SOLAR eclipse\nSOLA eclipse\nsolar ECLIPSE\n40 thieves" | sed 's/^\([A-Z]\{5\}\)\{0,1\}.*/\1/')
  3. echo -e "'$one'\n'$two'\n'$three'\n'$four'"
Success #stdin #stdout 0s 4476KB
stdin
Standard input is empty
stdout
'SOLAR'
''
''
''