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
- IntelliJ
- port
- bash
- vscode
- profile
- resource
- Eclipse
- Quartz
- plugin
- Mac
- 줄바꿈 문자
- web.xml
- find
- VirtualBox
- JavaScript
- xargs
- context
- 네트워크
- tomcat
- Windows 10
- lsof
- GIT
- Windows
- maVen
- grep
- ssh
- netsh
- 단축키
- import
- Source
Archives
- Today
- Total
develog
[bash] extract file extension 본문
## 실행
$ full=/common/css/jquery.min.css; \
path=`dirname "$full"`; \
file=`basename "$full"`; \
name=${file%.*}; \
ext=${file##*.}; \
echo ''; \
echo "full =" $full; \
echo "path =" $path; \
echo "file =" $file; \
echo "name =" $name; \
echo " ext =" $ext;
## 출력
full = /common/css/jquery.min.css
path = /common/css
file = jquery.min.css
name = jquery.min
ext = css
Comments