Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
BASENAME.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- .TH BASENAME 1
- .SH NAME
- basename, dirname - strip off file prefixes and suffixes
- .SH SYNOPSIS
- fBbasename fIfilefR [fIsuffixfR]fR
- .br
- fBdirname fIfilefR
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- (none)
- .SH EXAMPLES
- .EX "basename /user/ast/file.c" "Strips path to yield fIfile.cfP"
- .EX "basename /user/file.c .c" "Strips path and fI.cfP to yield fIfilefP"
- .EX "dirname /user/file.c" "Strips basename to yield fI/userfP"
- .SH DESCRIPTION
- .PP
- .I Basename
- removes the initial directory names (if any) yielding the name of the
- file itself.
- If a second argument is present, it is interpreted as a suffix and is
- also stripped, if present.
- .PP
- .I Dirname
- removes the final component of a path, yielding the directory a file is in.
- .PP
- These programs are primarily used in shell scripts.