开发者

Add one to number in text document

I want a terminal command that will edit a text file by adding 1 to the number in the text.

The entire contents of the text file is just a number.

I'm running the command through appleScr开发者_开发知识库ipt's do shell script command.


Quick and dirty:

do shell script "echo $(( $(<FoO) + 1 )) >FoO"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜