Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

sed find and replace

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

sed find and replace Edit text without opening files. s/old/new/g replaces all. -i edits in place; add .bak. Change a port safely.
sed find and replace · Download PNG
Read card text

What this card says

Why do we need it?

Edit text without opening files.

What is it?

s/old/new/g replaces all.

How to do it

-i edits in place; add .bak.

Example

Change a port safely.

sed -i.bak 's/8080/9090/g' app.conf

See all AWS revision cards