develog

[bash] find for loop 공백 파일명 본문

카테고리 없음

[bash] find for loop 공백 파일명

냐옴 2024. 3. 26. 14:17

 

find . -type f -name '*.mp4' | while read i
do
    if [ -f "$i" ]; then
        echo "file exist =>" "$i" 
    else
        echo "file NOT exist =>" "$i" 
    fi
done
Comments