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 |
Tags
- bash
- Source
- Eclipse
- IntelliJ
- xargs
- profile
- port
- resource
- import
- 공통표준용어
- lsof
- DB 도메인
- context
- copy-dependencies
- Windows 10
- JavaScript
- ssh
- maVen
- 네트워크
- Quartz
- 단축키
- tomcat
- netsh
- grep
- find
- web.xml
- VirtualBox
- Windows
- Mac
- GIT
Archives
- Today
- Total
develog
[bash] for loop 공백 파일명 본문
${list[@]} 를 따옴표로 감싸줘야 파일명이 제대로 출력된다
따옴표로 감싸지 않은 경우
따옴표로 감싼 경우
find 로 for loop 돌리는 경우
for i in "$(find . -type f -name '*.mp4' -maxdepth 1)"
do
echo "$i"
done
Comments