论坛风格切换切换到宽版
  • 509阅读
  • 6回复

关于Redirection and Pipes的问题 [复制链接]

上一主题 下一主题
离线veblen.
 
发帖
1940
C币
-60826
威望
339
贡献值
1
银元
-3
铜钱
4247
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-04-27
本帖最后由 afton 于 2010.-03-14 05:12 编辑. .

http://upload.bbs.csuboy.com/Mon_1004/93_7070_9b620f33a380b5e.gif[/img]  http://upload.bbs.csuboy.com/Mon_1004/93_7070_7bb66ec37685087.jpg[/img]下载 (16.34 KB)            杀毒

2.010-03-14 05:03电影

1。Write a single command that will sort the .contents of file4 reversely cr.eated in the question above, and appen.d the sorted content.s to file3, meanwhile display .it on the screen one page at a time. Your current working directo.ry is /home Use relative paths only.学习

我写的是:sort -r sue./dir1/file4|tee -a tom/docs/fil.e3.

2。 Use the echo command to display .the text "Last li.ne" but instead. of displaying    健康
   th.e tex.t on the screen append it to the file called m.ail2 in the mail directory. Use an absolute pathname.             汽车

我写的是:. echo "Last line" > /m.ail/mail2.

但是最后说我的不对,请问,问题出在哪里.呢?.

谢谢高手帮忙


对了,我的第一个问题前面的问题是Write a single command that will list all of the users currently logged in to the system sorted by user name, redirecting the output to a file c.alled file4 .in the dir1 dir.ectory. Use r.elative paths only. Y.our curr.ent working directory is /home/sue          婚庆
这个我已经做出来了。

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线gionah.
发帖
2040
C币
-235377
威望
400
贡献值
1
银元
-2
铜钱
4620
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-10
Re:关于Redirection
没有人回答吗

离线alluse.
发帖
2180
C币
-559263
威望
382
贡献值
1
银元
-2
铜钱
4770
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-10
Re:关于Redirection


QUOTE:但是最后说我的不对


什么提示?谁说的?有错误提示么?

离线iolia1789.
发帖
2112
C币
-235624
威望
397
贡献值
1
银元
-1
铜钱
4728
人人网人气币
0
只看该作者 地板  发表于: 2010-04-10
Re:关于Redirection
第一个提示是:The command is: sort and you need an option
You will need the tee command with an option
You will need to pipe the final output to another command

第二个问题提示:The command is: echo "Last line"
You will need to use output redirection

离线彩网.
发帖
2020
C币
-60724
威望
384
贡献值
1
银元
0
铜钱
4680
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-10
Re:关于Redirection
这个是shell的提示么?还是你在用什么在线考试系统?

离线涵冰.
发帖
2063
C币
-235248
威望
379
贡献值
1
银元
-1
铜钱
4644
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-10
Re:关于Redirection
都没有人知道吗

发帖
2027
C币
-139378
威望
384
贡献值
1
银元
0
铜钱
4613
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-10
Re:关于Redirection
第二个问题我自己解决了,现在就剩第一个问题了。
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个