Passion/bash
file="/home/user/myfile.txt"# basenamefilename=$(basename "$file") echo "basename: $filename"결과값:basename: myfile.txt