Linux 파일 이름에서 경로와 확장자를 추출하는 법(Extract File Basename Without Path and Extension in Bash)
… 개요 bash shell script 에서 file path 에서 확장자나 Path 를 제거하고 파일명만 뽑아내는 방법(bash shell 에서만 동작함) Path 제거하고 file 명만 추출 $ s=/the/path/foo.txt $ echo ${s##*/} foo.txt 파일명에서 …