|
|
1.1 ! root 1: .TH BASENAME 1 "1 April 1981" ! 2: .SH NAME ! 3: basename \- strip filename affixes ! 4: .SH SYNOPSIS ! 5: .B basename ! 6: string [ suffix ] ! 7: .SH DESCRIPTION ! 8: .I Basename ! 9: deletes any prefix ending in `/' and the ! 10: .I suffix, ! 11: if present in ! 12: .I string, ! 13: from ! 14: .I string, ! 15: and prints the result on the standard output. ! 16: It is normally used inside substitution marks \`\ \` ! 17: in shell procedures. ! 18: .PP ! 19: This shell procedure invoked with the argument ! 20: .I /usr/src/bin/cat.c ! 21: compiles the named file and moves the output to ! 22: .I cat ! 23: in the current directory: ! 24: .IP "" 15n ! 25: cc $1 ! 26: .br ! 27: mv a.out \`basename $1 .c\` ! 28: .SH "SEE ALSO" ! 29: sh(1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.