atom_jelly
asked on
sed insert a string after pattern on same line
Trying to use sed.
I can't figure out how to get sed to insert remember=5 after pattern sha512 in /etc/pam.d/system-auth file.
Thanks,
sed -i -e /sha512 / is my pattern and then don't know where to go from there. thanks.
the string in the file appears like this
password sufficient pam_unix.so sha512 shadow try_first_pass use_authtok
I can't figure out how to get sed to insert remember=5 after pattern sha512 in /etc/pam.d/system-auth file.
Thanks,
sed -i -e /sha512 / is my pattern and then don't know where to go from there. thanks.
the string in the file appears like this
password sufficient pam_unix.so sha512 shadow try_first_pass use_authtok
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help :) Have a nice day!
ASKER