例如
cat>test1<<EOF
$title
$(git-config --get --bool core.bare)
$(cd $GIT_DIR; pwd)
$1
$GIT_DIR/logs/HEAD
$(git rev-parse HEAD)
$$
$(cd $GIT_DIR; pwd)
${GIT_WORK_TREE-..}
EOF
需求:test1的内容显示
$title
$(git-config --get --bool core.bare)
$(cd $GIT_DIR; pwd)
$1
$GIT_DIR/logs/HEAD
$(git rev-parse HEAD)
$$
$(cd $GIT_DIR; pwd)
${GIT_WORK_TREE-..}
不太熟shell
放狗搜,没有找到解决方案
求大神帮看看,非常感谢
cat>test1<<EOF
$title
$(git-config --get --bool core.bare)
$(cd $GIT_DIR; pwd)
$1
$GIT_DIR/logs/HEAD
$(git rev-parse HEAD)
$$
$(cd $GIT_DIR; pwd)
${GIT_WORK_TREE-..}
EOF
需求:test1的内容显示
$title
$(git-config --get --bool core.bare)
$(cd $GIT_DIR; pwd)
$1
$GIT_DIR/logs/HEAD
$(git rev-parse HEAD)
$$
$(cd $GIT_DIR; pwd)
${GIT_WORK_TREE-..}
不太熟shell
放狗搜,没有找到解决方案
求大神帮看看,非常感谢