fork download
  1. #!/bin/bash
  2. s='Pd-na-c2 0.000 0.000 ATTN, need revision
  3. Pd-na-cc 0.000 0.000 same as Pd-na-c2
  4. cl-Pd-na 0.000 0.000 ATTN, need revision
  5. cl-Pd-cl 0.000 0.000 ATTN, need revision
  6. na-Pd-na 0.000 0.000 ATTN, need revision
  7. c2-c -ns 69.957 115.170 Calculated with empirical approach'
  8. sed -E '/ATTN, need revision|\<0\.000[[:blank:]]+same as/d' <<< "$s"
Success #stdin #stdout 0.01s 5348KB
stdin
Standard input is empty
stdout
c2-c -ns   69.957     115.170   Calculated with empirical approach