Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 BBEdit 命令行工具并逐步更新它。
示例:(echo -n "foo"; sleep 3; echo " bar") | bbedit 这将在 3 秒后出现,但我希望它显示foo,然后等待并显示foo bar。
(echo -n "foo"; sleep 3; echo " bar") | bbedit
foo
foo bar
如果 BBEdit 设置为更改时重新加载文件,您可以创建一个临时文件,打开它,然后每隔 3 秒写入一次。
file=`mktemp -t file` bbedit $file (echo "foo";sleep 3;echo " bar")>>$file
我还没有找到一种直接通过管道传输到 BBEdit 的方法,以便它在 3 秒后更新。