BASH   14

test.sh

Guest on 1st August 2021 05:46:39 PM

  1. #!/usr/local/bin/bash
  2.  
  3. perl -i -pe's/_5./_1_s./g' mov_709
  4.  
  5. for idx in {1..4}
  6. do
  7. perl -i -pe"s/_${idx}_s./_$((idx+1))_s./g" mov_709
  8. done

Raw Paste


Login or Register to edit or fork this paste. It's free.