我需要在txt文件中写下执行此命令所花费的时间:
time ./program.exe
我怎么能用bash脚本做?
我尝试>> time.txt但不起作用(输出不会转到文件并进入屏幕).
>> time.txt
bash
bash ×1