Unix版 - why my shell program doesn't continue |
|
|
|
|
|
g****a 发帖数: 60 | 1 the program is very simple
=================
#!/bin/csh
cat *.h include/*.h > temp1
grep ^#define temp1 > temp2
=====================
but after showing :
Selected SIMSCRIPT II.5 (1.8) for OpenLook 3.0 on Sun Sparc
it just stay there for ever. after I stop the program using
Ctl-D, I saw temp1 is there.
why. | q***e 发帖数: 90 | 2 Just type man grep to find out. I am
afraid no one would like to answer such simple and
easy question. Why not look at the manual for
a few minutes and you know why immediately.
Don't dpend on network too much! And ignore
to find out such simple question yourself!
【在 g****a 的大作中提到】 : the program is very simple : ================= : #!/bin/csh : cat *.h include/*.h > temp1 : grep ^#define temp1 > temp2 : ===================== : but after showing : : Selected SIMSCRIPT II.5 (1.8) for OpenLook 3.0 on Sun Sparc : it just stay there for ever. after I stop the program using : Ctl-D, I saw temp1 is there.
|
|
|
|
|
|