0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

How to pass environment variables to a shell script for display

Last updated at Posted at 2019-04-16

Make a shell file

 #!/bin/sh echo $COLOR 

Run a shell at the command line At this time, pass the environment variable of COLOR = green.

 $ COLOR=green sh test.sh 

green is displayed.

 green 

  • I think it has been written in various places, but a note.

Original by

シェルスクリプトに環境変数を渡して表示する方法

About

About this translattion

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?