Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. FILES="*"
  4.  
  5. for f in "$FILES";
  6. if [ ! -d $f ]; then
  7. do
  8. echo " " > $f;
  9. done
  10. fi
  11.  
  12.  
  13. =======================================
  14. [root@cc69-45:/var/log ] $:./cleanlog.sh
  15. ./cleanlog.sh: line 6: syntax error near unexpected token `if'
  16. ./cleanlog.sh: line 6: `if [ ! -d $f ]; then'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement