How can I update the shell script where I can replace username "u1" to any value from user input in a .txt file
'username' => "u1"
Below is the existing code:-
#!bin/bash
echo "\nEnter Username to replace: "
read name
sed -i -e s/u1/"$name"/g /var/1.txt