美文网首页linux
basename&dirname

basename&dirname

作者: lockdreamer | 来源:发表于2019-02-14 15:23 被阅读7次

    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

    相关文章

      网友评论

        本文标题:basename&dirname

        本文链接:https://www.haomeiwen.com/subject/xjjeeqtx.html