read line shell script的相關文章
read line shell script的相關商品

linux - How can I add a line to a file in a shell script? - Stack Overflow
瀏覽:590
日期:2025-04-30
To answer your original question, here's how you do it with sed: sed -i '1icolumn1, column2, column3' testfile.csv The "1i" command tells sed to go to line 1 and insert the text there. The -i option causes the file to be edited "in place" and can also tak...看更多