#!/bin/bash i="this/is/a/path.config" name=${i#*/} path=${i%/*} echo $name echo $path
is/a/path.config this/is/a
posted on 2017-08-23 15:08 TMatrix52 阅读(360) 评论(0) 编辑 收藏 举报