由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - help shell script (waiting on line)
相关主题
为什么我就是不会写Shell script?求助
我的cxterm比较怪how to change login shell?
which shell is best?my homework for UNIX shell高手, thanks!!!
where can I find some good website for C Shell ?[转载] About the history
shell script for "for" loopshell programming problems
One shell questionwhere can find source code of Bash or csh or any shell
Shell script problem? (转载)Re: 想登录后的shell是bash
怎么从script中把环境变量传回到当前shell中? (转载)帮帮忙,用C作一个SHELL
相关话题的讨论汇总
话题: script话题: shell话题: line话题: use话题: waiting
进入Unix版参与讨论
1 (共1页)
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...
1 (共1页)
进入Unix版参与讨论
相关主题
帮帮忙,用C作一个SHELLshell script for "for" loop
How to program? Shell QuestionOne shell question
[转载] how to get the return value of a command by shell?Shell script problem? (转载)
Re: [转载] how to get the return value of a command by shell?怎么从script中把环境变量传回到当前shell中? (转载)
为什么我就是不会写Shell script?求助
我的cxterm比较怪how to change login shell?
which shell is best?my homework for UNIX shell高手, thanks!!!
where can I find some good website for C Shell ?[转载] About the history
相关话题的讨论汇总
话题: script话题: shell话题: line话题: use话题: waiting