basename


Also found in: Wikipedia.

basename

(file system)
The name of a file which, in contrast to a pathname, does not mention any of the directories containing the file. Examples:

pathname basename -------- -------- /etc/hosts hosts ./alma alma korte/a.a a.a a.a a.a

See also pathname.
Mentioned in ?
References in periodicals archive ?
instanceOf, baseName) about a topic item --association--a structure containing the information
b) for * each topic type in topicTypes topic <--GenerateTopic(id,instanceO f, baseName); topicMap.Topics.Add(topic); end;
(12) #!/bin/bash nome=$(basename $0); : ${TEMPDIR:=/tmp} tmp_out=$TEMPDIR/$$.${nome}1; tmp_in=$TEMPDIR/$$.${nome}2 exec 3<&0; cat <&3 > $tmp_in; exec 3<&sort $tmp_in|uniq -c|sort-k 1, 1nr -k 2f > $tmp_out if [$# -eq 1]; then head -n $1 $tmp_out; else set $(wc -l $tmp_in) awk -v "total=$1" < $tmp_out ' {printf "%-25s%-25d%5.4f%%\n",$2,$1,(100/total)*$1} END {printf "\n\n\t\tTotal:%d\n", total} ' fi