關於cat指令 - Linux

Tom avatar
By Tom
at 2010-11-08T09:20

Table of Contents

最近在練習寫script

發現當我想要用cat 印出一個file內容時

if [ $input = ? ] ; then
`cat /home/$USER/.ratings/$2/comment_$3` #print comment
我可以順利的印出內容

但是跟在output後面會有 not found 這個錯誤訊息

請問是我在使用cat這個指令時哪裡出問題了嗎

--
Tags: Linux

All Comments

Edith avatar
By Edith
at 2010-11-09T15:33
去掉 ` `?
Eden avatar
By Eden
at 2010-11-13T15:43
謝謝 去掉就解決了= =

如何移除GEMAN裡的我的最愛

Jake avatar
By Jake
at 2010-11-08T04:45
把站台加到我的最愛以後 卻無法移除了 尤其是之前設定會自動開啟的 每次都會直接開啟 關掉也沒用 下次開啟GEMAN還是會出現 請問要如何去修改我的最愛裡的清單? - ...

關於 date 指令

Quintina avatar
By Quintina
at 2010-11-08T04:37
我在使用 CentOS 5.5 剛剛發現 date 指令怪怪的 當我輸入 date 及 hwclock 指令時都正常顯示現在日期時間, 但當我輸入 date -u 卻是顯示昨天而且時間都不正常,請問有人知 道怎麼解決這問題? 謝謝 ...

linux porting 的一個問題

Daniel avatar
By Daniel
at 2010-11-07T23:21
小弟最近碰到一個porting linux時的問題 這個看版應該有很多有相關經驗的朋友 想請教大家是否有類似的經驗 我porting 的linux在file system部分已經mount 但是在找init時發生以下的問題 and#34;attempt to access beyond end of dev ...

關於(/)根目錄與(//)

Noah avatar
By Noah
at 2010-11-07T18:06
※ 引述《kenduest.bbsatbbs.sayya.org (小州)》之銘言: : ※ 引述《BILLBADY.bbsatptt.cc (幽影藏原)》之銘言: : andgt; 請問一下先進 : andgt; 我最近在玩Linux,有安裝hamachi : andgt; 想來想用rc.local讓ham ...

使用script產生目錄

Dorothy avatar
By Dorothy
at 2010-11-07T17:33
※ 引述《qweqweqweqwe (啪)》之銘言: : 剛遇到另一個問題 : 如果有一行command是 : echo and#34;abcand#34;|sh myscript aaa bbb : aaa在script對應到 $1 : bbb對應到 $2 : 那 and#34;abcand#34;是對 ...