fork(2) download
  1. #!/bin/bash
  2. s='FROM some_registry as registry1
  3. FROM another_registry'
  4. sed 's/.*FROM \(.*\) as.*/\1/;s/FROM //' <<< "$s"
Success #stdin #stdout 0.01s 5336KB
stdin
Standard input is empty
stdout
some_registry
another_registry