Linuxshell script輸出結果 存至 變數 - LinuxElizabeth · 2011-02-24Table of ContentsPostCommentsRelated Posts如標題 cat file.txt 要怎樣把他顯示的結果存到變數?? 謝謝 -- LinuxAll CommentsCharlie2011-02-27content=`cat file.txt` && echo $contentLiam2011-03-02感謝, 成功了!!!!Sierra Rose2011-03-03cat的話,bash manpage裡有說用 $(<file.txt)比較快Related Postsapt-get的安裝死結用date改時間請教一個shell script的寫法請教一個shell script的寫法Ubuntu裡面看不到光碟機..
All Comments