Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. # inotifywait -m -e create -e moved_to . | while read dir action file
  2. do
  3. if [ -e "$file" ]
  4. then
  5. chattr +a "$file"
  6. echo Added +a to $file
  7. fi
  8. done
  9.  
  10. % lsattr ff
  11. -----a-------e-- ff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement