Rewrite cfg file in .sh file

Asked 2 months ago, Updated 2 months ago, 5 views

I'd like to rewrite the cfg file in a different directory than the one where the sh file is stored. What can I do about it?

Currently
./usercreate.sh
cd to /airflow
sed-i-e"4c\dags_folder=/home/test2/dags"airflow.cfg

I'm doing it in the form of
but I'm also doing it in the last two lines. I would like to write it down in usercreate.sh.

ubuntu shellscript

2022-09-30 11:21

1 Answers

to ./usercreate.sh

sed-i-e"4c\dags_folder=/home/test2/dags"~/airflow/airflow.cfg

All you have to do is add .


2022-09-30 11:21

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.