/etc/passwd script question
Hello all, I need some scripting help. I need to modify the /etc/passwd file using a script.
I want to change the 2nd column of a user field from x to *.
As an example:
I've tried various combinations of sed and awk, but the /'s in the path names, and the wildcard '*' seem to mess things up.
Does anyone have an idea of how I can go about this?
Never let a computer know you’re in a hurry.