Rewrite cfg file in .sh file

Asked 1 years ago, Updated 1 years ago, 75 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


© 2024 OneMinuteCode. All rights reserved.