參數/變數 置換 - Linux

By Daph Bay
at 2017-06-01T23:12
at 2017-06-01T23:12
Table of Contents
我有一個test_csh如下
#! /bin/csh
set now_shell = "test_csh"
set show_me = "inside_shell"
echo "$now_shell : $show"
請問有無方法在命令列執行 test_csh 也置換變數內容 $show_me
1. 我不要$1 $2 把參數帶入
2. 我比較想要類似makefile, 如執行命令 make show_me=outside_shell
--
Tags:
Linux
All Comments

By Jake
at 2017-06-05T22:13
at 2017-06-05T22:13

By Leila
at 2017-06-07T00:13
at 2017-06-07T00:13

By Dinah
at 2017-06-08T09:46
at 2017-06-08T09:46

By Adele
at 2017-06-11T10:08
at 2017-06-11T10:08

By Donna
at 2017-06-14T07:34
at 2017-06-14T07:34
Related Posts
sudo security issue

By Kyle
at 2017-06-01T03:54
at 2017-06-01T03:54
NUMA cache

By Selena
at 2017-05-31T12:12
at 2017-05-31T12:12
有辦法把別的console接過來用嗎?

By Una
at 2017-05-30T18:24
at 2017-05-30T18:24
GCP+Ubuntu+Redmine

By Victoria
at 2017-05-30T15:48
at 2017-05-30T15:48
Mysql Docker Container連線一半就中斷

By Zanna
at 2017-05-29T09:28
at 2017-05-29T09:28