Linux tips | export environment variables | use sed to update multiple files

Опубликовано: 23 Ноябрь 2021
на канале: Python 360
111
5

Updating config files with Linux environment variables is something you may need to do when setting up Flask, Nginx, or Django projects. Here we see how to update multiple config files with one line, using sed.

Sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline) - rather than look up the syntax each time, try and use an example like this many times and you'll do just fine.

🌏 https://linux.die.net/man/1/sed

Visit redandgreen blog for more Tutorials
=========================================
🌏 http://redandgreen.co.uk/about/blog/

Subscribe to the YouTube Channel
=================================
🌏    / drpicode  

Follow on Twitter - to get notified of new videos
=================================================
🌏   / rngweb  

👍 Become a patron 👍
🌏   / drpi  

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

🌏 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

#sed #LinuxTips #editingfiles


Смотрите видео Linux tips | export environment variables | use sed to update multiple files онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Python 360 23 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 111 раз и оно понравилось 5 посетителям.