elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
man
/
man1
/
basename.1
File editor
.TH BASENAME 1 .SH NAME basename, dirname \- strip off file prefixes and suffixes .SH SYNOPSIS \fBbasename \fIfile\fR [\fIsuffix\fR]\fR .br \fBdirname \fIfile\fR .SH EXAMPLES .TP 30 .B basename /user/ast/file.c # Strips path to yield \fIfile.c\fP .TP 30 .B basename /user/file.c .c # Strips path and \fI.c\fP to yield \fIfile\fP .TP 30 .B dirname /user/file.c # Strips basename to yield \fI/user\fP .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.
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history