want only file names (not whole path) or directory path excluding filen ame in shell script

#!/bin/ksh

a="/abc/xyz/html"

file=${a##*/}
dir=${a%/*}

No comments :

Post a Comment