Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FILES="*"
- for f in "$FILES";
- if [ ! -d $f ]; then
- do
- echo " " > $f;
- done
- fi
- =======================================
- [root@cc69-45:/var/log ] $:./cleanlog.sh
- ./cleanlog.sh: line 6: syntax error near unexpected token `if'
- ./cleanlog.sh: line 6: `if [ ! -d $f ]; then'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement