fork download
  1. #!/bin/bash
  2. s="02/02/2020
  3. 08/25/1998
  4. 03/02/2030
  5. 12/02/2021
  6. 06/19/1960
  7. 01/10/2010
  8. 03/07/2100"
  9. sed -E '/^([0-9])([0-9])\/([0-9])([0-9])\/\4\3\2\1$/!d' <<< "$s"
Success #stdin #stdout 0s 4424KB
stdin
Standard input is empty
stdout
02/02/2020
03/02/2030
12/02/2021