fork(1) download
  1. #!/bin/bash
  2. timestamp_foramt="^.+_INFT_[0-9]{8}_[0-9]{6}\.[[:alnum:]_]+$"
  3. FNAME="Payments.test_INFT_20191218_075918.txt" #example
  4. if [[ ! $FNAME =~ $timestamp_foramt ]]; then
  5. echo 'non-format';
  6. else
  7. echo 'format';
  8. fi;
  9.  
Success #stdin #stdout 0s 4504KB
stdin
Standard input is empty
stdout
format