Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. FILES="*"
  4.  
  5. for f in "$FILES";
  6. if [ ! -d $f ]; then
  7. echo " " > $f;
  8. fi
  9.  
  10.  
  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