리눅스/bash

basename 유용할 듯.

Ben Ko (SINCE 2013) 2013. 4. 16. 18:01
728x90

BASENAME(1)                      User Commands                     BASENAME(1)

NAME
       basename - strip directory and suffix from filenames

 

[root@mpkangTest html]# basename /home/apache/bin/apachectl
apachectl

 

유용하네요 ㅎ