Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Windows 10
- import
- 네트워크
- find
- VirtualBox
- GIT
- netsh
- maVen
- JavaScript
- context
- ssh
- lsof
- profile
- grep
- Windows
- Quartz
- Eclipse
- port
- resource
- DB 도메인
- copy-dependencies
- Mac
- web.xml
- xargs
- 단축키
- bash
- 공통표준용어
- tomcat
- IntelliJ
- Source
Archives
- Today
- Total
develog
[bash] source, include other bash file 본문
다른 bash 파일 인클루드 방법
source some_bash_file.sh
example
## 인클루드 할 파일
$ vi common.sh
HOME_PATH=/home
## 인클루드 하는 파일
$ vi run.sh
source ./common.sh
echo $HOME_PATH
## 실행
$ ./run.sh
/home
'OS & Shell > bash' 카테고리의 다른 글
[bash] array loop (0) | 2021.04.14 |
---|---|
[bash] find egrep xargs grep, 파일 리스트 / 파일 내용 검색 (0) | 2021.03.22 |
[bash] split path & filename (0) | 2021.03.09 |
[bash] del-log.sh (0) | 2021.03.02 |
[bash] 변수값을 '_' (underscore) 로 연결하기 (0) | 2021.03.02 |
Comments