For a project I need to create a user registration with different types of users and functions, this user record is saved in a text file with the format:
Nombre:Contraseña:TipodeUsuario:cedula
This record is done correctly and my question is in the modification of this record which I do with a sed command that I do not understand exactly what the line does:
echo $(sed "${nLinea} s/:[^:]*/:${contrasena}/" usuarios.txt) > usuarios.txt