logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cleanname - clean a path name

Description

       For each file name argument, cleanname, by lexical processing only, prints the shortest equivalent string
       that  names  the  same (possibly hypothetical) file.  It eliminates multiple and trailing slashes, and it
       lexically interprets .  and ..  directory components in the name.  If the -d option is present,  unrooted
       names are prefixed with pwd/ before processing.

Name

       cleanname - clean a path name

See Also

cleanname(3).

                                                                                               CLEANNAME(1plan9)

Source

/src/cmd/cleanname.c

Synopsis

cleanname [ -dpwd ] names...

See Also