關於cat指令 - Linux

Table of Contents

最近在練習寫script

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

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

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

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

--

All Comments

Edith avatarEdith2010-11-09
去掉 ` `?
Eden avatarEden2010-11-13
謝謝 去掉就解決了= =