Hello,
I want to test if i find the word CACCIA AND idlck in a file, i have to print a message Ok.
For that , i need to user a awk command with a && logical.
Can you help me ?
### CACCIA: DEBUT ###
if $(grep -wqi "$2" /etc/passwd); then
[ -f /etc/security/.idlck ] && rm /etc/security/.idlck
chuser -R files registry=files $2
fi
### CACCIA: FIN ###