Linux下shell编程实现创建文章并打开 发表于 2019-01-14 更新于 2023-02-21 分类于 未归类 bash代码如下 123456789101112#!/bin/bashecho "请输入文章名"read titleecho "$title is your title"cd /your/bolg/rootdirhexo new $titleecho "创建成功"cd /your/bolg/rootdir/source/_posts/titles=$(find . -iname "*$title.md")echo $titlesgnome-open $titles && exit