开发者

BBEdit progressively update command line

开发者 https://www.devze.com 2023-03-31 04:01 出处:网络
Is it possible to use the BBEdit command line tool and update it progressively. Example: (echo -n \"foo\"; sleep 3; echo \" bar\") | bbedit

Is it possible to use the BBEdit command line tool and update it progressively.

Example: (echo -n "foo"; sleep 3; echo " bar") | bbedit

This will appear after 3 seconds, but I want it to display foo and then wait a开发者_如何学编程nd display foo bar.


If BBEdit is set to reload files when they change, you can create a temporary file, open it, and write to it with an interval of 3 seconds.

file=`mktemp -t file`
bbedit $file
(echo "foo";sleep 3;echo " bar")>>$file

I haven't found a way to pipe directly to BBEdit so that it updates after 3 seconds.

0

精彩评论

暂无评论...
验证码 换一张
取 消