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