linux

basename&dirname

2019-02-14  本文已影响7人  lockdreamer

basename和dirname命令常见参数解释,实例演示

$ basename --help

lockdreamer

-a, --multiple support multiple arguments and treat each as a NAME ##支持多个参数并将每个参数视为名称

lockdreamer

-s, --suffix=SUFFIX remove a trailing SUFFIX ##删除尾随后缀

lockdreamer

-z, --zero separate output with NUL rather than newline  ##用空而不是换行符分隔输出

lockdreamer

$ dirnamename --help

lockdreamer lockdreamer

if NAME contains no /,output '.'(meaning the current directory)

lockdreamer
上一篇下一篇

猜你喜欢

热点阅读