Simple use of test command 
Check if the file /etc/auditd.conf exists, if not, create empty one


test ! -f /etc/audit.conf && touch /etc/audit.conf


Check if the folder exists:


test ! -d /ora1 && echo "/ora1 doesn't exist" && exit 13


[ add comment ]   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>