BASH   31

make txts

Guest on 3rd July 2022 05:01:53 PM

  1. #!/bin/sh
  2.  
  3. for f in *.cgi
  4. do
  5.   newf=`echo $f | sed 's/\.cgi/\-cgi.txt/'`
  6.   cp $f $newf
  7.   chmod 664 $newf
  8. done

Raw Paste


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