I am trying to run:
sed -i "/$variable/c \$variable1' file.txt
But it's not displaying any change in the file file.txt
file.txt
But the same command, without the variable works fine
sed -i "/variable/c \variable1' file.txt
Aucun commentaire:
Enregistrer un commentaire