当前位置: 技术问答>linux和unix
明天交作业,实在弄不明白了,希望大家帮忙。
来源: 互联网 发布时间:2015-09-09
本文导语: Read the online manual of the ksh command. Then find out the ksh command to execute the ls command (This is one way to execute a ksh script. Since we have not learned about ksh script, we use the ls command here) ------------------------------...
Read the online manual of the ksh command. Then find out the ksh command to execute the ls command (This is one way to execute a ksh script. Since we have not learned about ksh script, we use the ls command here)
--------------------------------------
Create an alias named word to search a given pattern in the dictionary file /usr/share/lib/dict/words.
--------------------------------------------
Create an alias named ll that lists the given directory in long format. The alias should use a pager to display the result.
------------------------------------------------
Create an alias named vi that runs the command /usr/ucb/vi to edit text files. The alias should turn off the notification of new emails using the biff command before executing the vi command and turn on the notification of new emails after the vi command.
-----------------------------------------------------
The file datafile contains the data below.
northwest NW Charles Main 3.0 .98 3 34
western WE Sharon Gray 5.3 .97 5 23
southwest SW Lewis Dalsass 2.7 .8 2 18
southern SO Suan Chin 5.1 .95 4 15
southeast SE Patricia Hemenway 4.0 .7 4 17
eastern EA TB Savage 4.4 .84 5 20
northeast NE AM Main Jr. 5.1 .94 3 13
north NO Margot Weber 4.5 .89 5 9
central CT Ann Stephens 5.7 .94 5 13
Write a Unix command that searches the file and returns the following result. Only one pattern is allowed in the command line.
eastern EA TB Savage 4.4 .84 5 20
northeast NE AM Main Jr. 5.1 .94 3 13
----------------------------------------------------------
Write a Unix command to search for BOB, Bob, BOb or BoB in the file mybob. Only one pattern is allowed in the command line.
---------------------------------------------------
估计以上问题对于这里的高手来说都是易如反掌。希望大家能帮帮我。大过年的,小弟我在这里给大家拜年了。
--------------------------------------
Create an alias named word to search a given pattern in the dictionary file /usr/share/lib/dict/words.
--------------------------------------------
Create an alias named ll that lists the given directory in long format. The alias should use a pager to display the result.
------------------------------------------------
Create an alias named vi that runs the command /usr/ucb/vi to edit text files. The alias should turn off the notification of new emails using the biff command before executing the vi command and turn on the notification of new emails after the vi command.
-----------------------------------------------------
The file datafile contains the data below.
northwest NW Charles Main 3.0 .98 3 34
western WE Sharon Gray 5.3 .97 5 23
southwest SW Lewis Dalsass 2.7 .8 2 18
southern SO Suan Chin 5.1 .95 4 15
southeast SE Patricia Hemenway 4.0 .7 4 17
eastern EA TB Savage 4.4 .84 5 20
northeast NE AM Main Jr. 5.1 .94 3 13
north NO Margot Weber 4.5 .89 5 9
central CT Ann Stephens 5.7 .94 5 13
Write a Unix command that searches the file and returns the following result. Only one pattern is allowed in the command line.
eastern EA TB Savage 4.4 .84 5 20
northeast NE AM Main Jr. 5.1 .94 3 13
----------------------------------------------------------
Write a Unix command to search for BOB, Bob, BOb or BoB in the file mybob. Only one pattern is allowed in the command line.
---------------------------------------------------
估计以上问题对于这里的高手来说都是易如反掌。希望大家能帮帮我。大过年的,小弟我在这里给大家拜年了。
|
第一题是ksh ls???题目没弄明白
第二题难道是alias word cat /usr/share/lib/dict/words | grep???
第三题难道是alias ll ls -lA |more????
第四题貌似alias vi biff;/usr/ucb/vi;biff ?????
最后一题好像使用cat mybob |grep B[Oo][Bb]就可以了吧?
出题要人做最好用中文,昨天看了一天的polling,PF,头昏脑胀ing……
第二题难道是alias word cat /usr/share/lib/dict/words | grep???
第三题难道是alias ll ls -lA |more????
第四题貌似alias vi biff;/usr/ucb/vi;biff ?????
最后一题好像使用cat mybob |grep B[Oo][Bb]就可以了吧?
出题要人做最好用中文,昨天看了一天的polling,PF,头昏脑胀ing……
|
这个……似乎,和外文的网站比起来少很多……
www.fanqiang.com上面有个中文的man手册,不过好像很久不更新了……
另外,不同的Unix,命令也是有差别的,最好还是在shell里面用man看
www.fanqiang.com上面有个中文的man手册,不过好像很久不更新了……
另外,不同的Unix,命令也是有差别的,最好还是在shell里面用man看
|
http://community.csdn.net/Expert/topic/3728/3728514.xml?temp=.3598444