Extract value from key=value file

Print the value of DB_HOST from a .env file

sed -n 's/^DB_HOST=//p' .env

tool
sed15 commands
tags
sedlinux

More sed commands

all 15 sed commands