我有一个脚本,可以在/tmp
目录中创建几个文件
#!/bin/bash
touch /tmp/file1.txt
touch /tmp/file2.txt
如何使脚本/tmp/
在Finder中打开两个文件file1.txt
并file2.txt
选择目录?
我知道我可以使用以下方式打开文件夹:
open /tmp/
但是(显然)它没有选择两个文件。
查看手册页中的open(1)命令:x-man-page:// 1 / open
您会在这里找到-R
选项:
-R Reveals the file(s) in the Finder instead of opening them.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句