![]() |
Helloやアメリカ合衆国へようこそ! UNIXおよびLinuxフォーラム!訪問し、当社のグローバルコミュニティに参加いただきありがとうございます。
|
|
Googleのunix.com
|
|||||||
| シェルプログラミングとスクリプティング KSH 、 CSH 、 shに、 bashの、はPerl 、 PHPは、削除するsed 、 Awkの、他のシェルスクリプトやシェルスクリプト言語についての質問の投稿はこちら。 |
その他のUNIXおよびLinuxフォーラムトピックは参考にすること
|
||||
| スレッド | スレッドスターター | フォーラム | 返信 | 最後の投稿 |
| ファイル'予想外の'末端 | srisreeku | シェルプログラミングとスクリプティング | 1 | 2008年4月28日 03:39午後 |
| 予期しないファイルの終わり | naveeng.81 | シェルプログラミングとスクリプティング | 1 | 2008年3月11日 06:43午前 |
| 予期しないファイルの終わり | dineshr85 | シェルプログラミングとスクリプティング | 2 | 2007年10月15日 03:47午前 |
| ファイル'予想外の'末端 | abhijeetkul | シェルプログラミングとスクリプティング | 4 | 2006年4月10日 07:42午前 |
| gunzipを:予期しないファイルの終わり | ドリー | UNIXのダミー質問と回答のため | 1 | 2002年9月26日 06:34午前 |
![]() |
|
|
LinkBack | スレッドツール | このスレッドを検索 | スレッドを評価 | 表示モード |
|
|
|
||||
|
ファイル'予想外の'末端
してください! !
私はこのスクリプトを実行して、ファイルI '予想外のエラー'末端てくるんだ。私は、通常括弧手段か場違いカントですが、私は知っているものを見つける!私のスクリプトと私はいくつかの"印刷"でstaementsに置き、それを過去の文私は、最初のIF dontしていないことに新しいだと思う。ここでは、スクリプトです。事前に感謝 コード:
#!/bin/sh echo "Please enter a station: \c" read station echo "Please enter the desired timestamp: \c" read timestamp cp PBLplot.pro $station/$timestamp cd $station/$timestamp/ echo "Would you like to plot (1) 4panel with one var per map or (2) 4panel all vars per map: \c" read choice echo "$choice" if "$choice" -eq 1 then echo "Please enter temperature variable (Skin, Tmpc, T10m, T20m, Dwpc, Ts01, Ts02): \c" read temperature echo "Please enter flux variable (Sens, Soil, Latn, Snof, Rdwn, Fupf, Sped): \c" read fluxvar echo "Please enter boundary layer variable (Hpbl, Fclc, Zlcl, Thbr, Shbr, Tdir, Tspd): \c" read bl echo "Please enter solar radiation variable (Sold, Solu, Atmr, Terr, Netr, Sumr, Bown): \c" read solarrad echo "Do you want to save this plot?: \c" read saveplot echo "Enter a file name (no extensions please): \c" read filename idl<<EOF .compile PBLplot.pro PBL $timestamp $choice $temperature $fluxvar $bl $solarrad $saveplot $filename exit EOF elif "$choice" -eq 2 then echo "Do you want to save this plot?: \c" read saveplot echo "Enter a file name (no extensions please): \c" read filename idl<<EOF .compile PBLplot.pro PBL $timestamp $choice $saveplot $filename exit EOF fi echo "continue" rm PBLplot.pro 編集Franklin52で最終; 2008年10月11日に 01:10午後..理由:コードのタグを追加する |
|
||||
|
の迅速な応答をしていただきありがとうございます、今では私は、構文を変更しているが、まだ他の提案を見ることができます....と同様のエラーを取得するのですか?
コード:
#!/bin/sh echo "Please enter a station: \c" read station echo "Please enter the desired timestamp: \c" read timestamp cp PBLplot.pro $station/$timestamp cd $station/$timestamp/ echo "Would you like to plot (1) 4panel with one var per map or (2) 4panel all vars per map: \c" read choice echo "$choice" if [ "$choice" -eq 1 ] then echo "Please enter temperature variable (Skin, Tmpc, T10m, T20m, Dwpc, Ts01, Ts02): \c" read temperature echo "Please enter flux variable (Sens, Soil, Latn, Snof, Rdwn, Fupf, Sped): \c" read fluxvar echo "Please enter boundary layer variable (Hpbl, Fclc, Zlcl, Thbr, Shbr, Tdir, Tspd): \c" read bl echo "Please enter solar radiation variable (Sold, Solu, Atmr, Terr, Netr, Sumr, Bown): \c" read solarrad echo "Do you want to save this plot?: \c" read saveplot echo "Enter a file name (no extensions please): \c" read filename idl<<EOF .compile PBLplot.pro PBL $timestamp $choice $temperature $fluxvar $bl $solarrad $saveplot $filename exit EOF elif [ "$choice" -eq 2 ] then echo "Do you want to save this plot?: \c" read saveplot echo "Enter a file name (no extensions please): \c" read filename idl<<EOF .compile PBLplot.pro PBL $timestamp $choice $saveplot $filename exit EOF fi echo "continue" rm PBLplot.pro # |