1 2 3 4 5 6 7 8
#!/bin/sh if [ -e /var/log/user/"$1" ] then echo -n "" > /var/log/user/"$1" else echo "File does not exist" fi