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.
to ./usercreate.sh
sed-i-e"4c\dags_folder=/home/test2/dags"~/airflow/airflow.cfg
All you have to do is add .
© 2024 OneMinuteCode. All rights reserved.