SED

In [2]:
cat file.txt
here=milad
over=nima
here=zigma
over=alpha

In [3]:
sed s/here/nowhere/ file.txt
nowhere=milad
over=nima
nowhere=zigma
over=alpha

In [ ]:
sed -i s/here/nowhere/ file.txt
In [ ]:
sed /here/d file.txt

Lecture notes

License

Creative Commons License

Linux Notes by Milad As (Ravexina) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


ravexina's gitlab

ravexina's github