I want to insert a line after matching line in sshd file which is present inside pam.d directory.
For e.g. it should search for this line
account required pam_nologin.so
and it should insert a line
account required pam_access.so
just below it, with proper line spacing between words.
I'm new to sed and awk, so any help would be appreciated.