I need to delted an "additional root user" out of /etc/passwd and /etc/shadow.
I would prefer just to lock the account but that is another issue, I have to delete.
How do I delete the line that has user name Root_n_tooten
Perl one liners work great for me
I assume it will look something like
perl -i -pe 's/^(root-n-tooten)/#$1/' file
but it would not comment out , it would remove the line