z****n 发帖数: 28 | 1 I am doing my homework now, but the professor urges me to use shell script.
How to use shell script? any good and easy ways? Thanks a lot! |
t*******l 发帖数: 421 | 2 ft..
无从下手帮啊。。。
【在 z****n 的大作中提到】 : I am doing my homework now, but the professor urges me to use shell script. : How to use shell script? any good and easy ways? Thanks a lot!
|
c**o 发帖数: 166 | 3 Check the links in Bei Wang Lu of this board.
【在 z****n 的大作中提到】 : I am doing my homework now, but the professor urges me to use shell script. : How to use shell script? any good and easy ways? Thanks a lot!
|
z****n 发帖数: 28 | 4 then what is the command meaning: do wc -1 $i;
script.
【在 t*******l 的大作中提到】 : ft.. : 无从下手帮啊。。。
|
t*******l 发帖数: 421 | 5 应该是count 文件的行数,
$i 是个文件变量。。。
【在 z****n 的大作中提到】 : then what is the command meaning: do wc -1 $i; : : script.
|
z****n 发帖数: 28 | 6 This is what the professor e-mailed me.
tell you how many words are in each file that ends in 5. Try and see if you
can edit the script to achieve the functionality that you need.
% for i in *5; do wc -l $i; done
Note that the command between "do" and "done" is executed for each "i"
that corresponds to a file name that ends in a "5".
BUT, MY QUESTION is, I don't know where to run this command? Should I open the
file? But after I open the file, because there are text files, I use pico to
open it.
【在 t*******l 的大作中提到】 : 应该是count 文件的行数, : $i 是个文件变量。。。
|
o***z 发帖数: 133 | 7 you know what's a shell. if you use bash,
run it at the command line or in a script
【在 z****n 的大作中提到】 : This is what the professor e-mailed me. : tell you how many words are in each file that ends in 5. Try and see if you : can edit the script to achieve the functionality that you need. : % for i in *5; do wc -l $i; done : Note that the command between "do" and "done" is executed for each "i" : that corresponds to a file name that ends in a "5". : BUT, MY QUESTION is, I don't know where to run this command? Should I open the : file? But after I open the file, because there are text files, I use pico to : open it.
|
c*****e 发帖数: 32 | 8 在 bash 命令行下运行。
运行前先进入那个包含那些文件名以 5 结尾的文件的目录下。
the
【在 z****n 的大作中提到】 : This is what the professor e-mailed me. : tell you how many words are in each file that ends in 5. Try and see if you : can edit the script to achieve the functionality that you need. : % for i in *5; do wc -l $i; done : Note that the command between "do" and "done" is executed for each "i" : that corresponds to a file name that ends in a "5". : BUT, MY QUESTION is, I don't know where to run this command? Should I open the : file? But after I open the file, because there are text files, I use pico to : open it.
|
z****n 发帖数: 28 | 9 The machine I should ssh- into is down. sigh...cannot do it tonight...BTW,
what is bash?
you
to
ask
【在 c*****e 的大作中提到】 : 在 bash 命令行下运行。 : 运行前先进入那个包含那些文件名以 5 结尾的文件的目录下。 : : the
|
t*******l 发帖数: 421 | 10 hehe,
do u use unix?
【在 z****n 的大作中提到】 : The machine I should ssh- into is down. sigh...cannot do it tonight...BTW, : what is bash? : : you : to : ask
|
z****n 发帖数: 28 | 11 never before...sigh...
【在 t*******l 的大作中提到】 : hehe, : do u use unix?
|
t*******l 发帖数: 421 | 12 do you have user name to log in?
【在 z****n 的大作中提到】 : never before...sigh...
|