![](/img/trans.png)
[英]Find pattern of the file, create a folder with that pattern and copy the files to that folder - Bash script
[英]Create a file and put it into a folder - Bash Script
有没有办法更改以下代码:
#!/bin/sh
mkdir -p new/{css,img,js}
touch index.html style.css nav.js && subl index.html style.css nav.js
它将创建的文件放入创建的文件夹,然后使用Sublime-Text打开它?
谢谢...
将文件名更改为完整的相对路径:
#!/bin/sh
mkdir -p new/{css,img,js}
touch new/{css,img,js}/index.html new/{css,img,js}/style.css new/{css,img,js}/nav.js && subl new/{css,img,js}/index.html new/{css,img,js}/style.css new/{css,img,js}/nav.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.