Redian新闻
>
help shell script (waiting on line)
avatar
help shell script (waiting on line)# Unix - 噫吁兮,危乎高哉
z*n
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!
avatar
t*l
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!

avatar
c*o
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!

avatar
z*n
4
then what is the command meaning: do wc -1 $i;

script.

【在 t*******l 的大作中提到】
: ft..
: 无从下手帮啊。。。

avatar
t*l
5
应该是count 文件的行数,
$i 是个文件变量。。。

【在 z****n 的大作中提到】
: then what is the command meaning: do wc -1 $i;
:
: script.

avatar
z*n
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 是个文件变量。。。

avatar
o*z
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.

avatar
c*e
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.

avatar
z*n
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

avatar
t*l
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

avatar
z*n
11
never before...sigh...

【在 t*******l 的大作中提到】
: hehe,
: do u use unix?

avatar
t*l
12
do you have user name to log in?

【在 z****n 的大作中提到】
: never before...sigh...
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。