Advertisement
cinnamonandrew

Pb6 SHELL

Apr 14th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. all=` find ./dir -type f `
  4.  
  5. for i in $all; do
  6.         cmd=` ls -l $i | grep "^........w" `
  7.         if [ -n "$cmd" ]; then
  8.                 echo `ls -l $i | awk '{print $1" "$9}'`
  9.                 $(` chmod -002 $i`)
  10.                 echo `ls -l $i | awk '{print $1" "$9}'`
  11.         fi
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement