Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の時間にメディアプレーヤーを開き、時間の経過とともに音量を上げる単純なbashスクリプトを作成しています。このスクリプトを後で何人かと共有したいので、他のユーザーが好みに合わせて値を変更できるようにする別のスクリプトを作成できないかと考えていました。
texteditor を介してスクリプトを開くだけで問題が解決することはわかっていますが、bashscripting は初めてなので、texteditor を使用せずにこれを行う方法があるかどうか知りたいです
最も簡単な方法
設定ファイルをソースする
. /pathto/myconfig
次に、テキストエディターで開くことができる構成ファイルに値を設定します
#explanation of parameter PARAM1="...."