fork download
  1. #!/bin/bash
  2.  
  3. for file in *
  4. do
  5. if [[ $file == a* ]]; then
  6. echo "chmod 660 " "$file"
  7. chmod 660 "$file"
  8. elif [[ $file == b* ]]; then
  9. echo "chmod 754 " "$file"
  10. chmod 754 "$file"
  11. else
  12. echo "chmod 600" "$file"
  13. chmod 600 "$file"
  14. fi
  15. done
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty