Check if all passwords are shadowed in a script
I need to write a bash script in Solaris 10 that checks if all passwords are shadowed.
If they are shadowed, print "Exception: NO", if they aren't, print "exception:Yes".
The problem here is how do i go about checking that all my passwords are shadowed?
Also, what commands can i use for the script?
I know i can use if else, awk, grep but my knowledge only extends to simple awk and grep.