bash_test.sh 230 B

1234567891011121314
  1. #!/bin/bash
  2. times=$1
  3. [ $times -gt 0 2> /dev/null ] || times=300
  4. for (( c=1; c<=$times; c++ ))
  5. do
  6. echo "hello $c"
  7. cp somefile testdir/somefile
  8. rm -rf testdir/somefile
  9. ls testdir/
  10. cat somefile > testdir/x
  11. date
  12. done > OUTPUT