我想保存在一個文件中形成的外殼:如何保存shell的輸出?
Type the number of steps N
10
Type the initial values ti and ai
0
1
23.000000 24.000000
46.000000 576.000000
69.000000 13824.000000
92.000000 331776.000000
115.000000 7962624.000000
138.000000 191102976.000000
161.000000 4586471424.000000
184.000000 110075314176.000000
207.000000 2641807540224.000000
230.000000 63403380965376.000000
253.000000 1521681143169024.000000
怎麼辦呢?它不只是打字工作:
>./a.out>lalalla.txt
你試圖將可執行文件的交互式會話的輸出捕獲到文件中? –
它確實有效,但由於您已將輸出重定向到文本文件,因此看不到任何內容。嘗試輸入'10 0 1' –
對不起,它不工作... – user2971553