第一章实验

1[soflib@localhost ~]$ who
soflib   tty1         2010-03-04 14:48 (:0)
soflib   pts/0        2010-03-04 14:58 (:0.0)
2
[soflib@localhost ~]$ date
2010 03 04
星期四
15:00:35 CST
3
[soflib@localhost ~]$ echo This is a command.
This is a command.
[soflib@localhost ~]$ echo 'hello    C'
hello    C
[soflib@localhost ~]$ echo hello     C
hello C
4
[soflib@localhost ~]$ cal 10 2010
     
十月
2010    

                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
5
[soflib@localhost ~]$ clear

清屏。
6
[soflib@localhost ~]$ cat m1
a b c d e f g h i j k l m n o p q r s t
[soflib@localhost ~]$ cat m1 m2
a b c d e f g h i j k l m n o p q r s t
1 2 3 4 5 6 7 8 9 10
7
[soflib@localhost ~]$ head -5 mfile
a b c d e f g h i j k l m n o p q r s t
1 2 3 4 5 6 7 8 9 10
sdfafjfj
fdsfjdfljdf
dsfjasfjef
[soflib@localhost ~]$ head -v mfile
==> mfile <==
a b c d e f g h i j k l m n o p q r s t
1 2 3 4 5 6 7 8 9 10
sdfafjfj
fdsfjdfljdf
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
jd;fj'asldfja'
dfj'afja'f
[soflib@localhost ~]$ head -q mfile
a b c d e f g h i j k l m n o p q r s t
1 2 3 4 5 6 7 8 9 10
sdfafjfj
fdsfjdfljdf
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
jd;fj'asldfja'
dfj'afja'f
8
[soflib@localhost ~]$ tail mfile
fdsfjdfljdf
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
jd;fj'asldfja'
dfj'afja'f
fjdl'fjasfj
adfhldfaf
fa;lf
9
[soflib@localhost ~]$ touch yanglong
[soflib@localhost ~]$
[soflib@localhost ~]$ head mfile>more_h10
[soflib@localhost ~]$ sort more_h10
1 2 3 4 5 6 7 8 9 10
a b c d e f g h i j k l m n o p q r s t
dfj'afja'f
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
fdsfjdfljdf
jd;fj'asldfja'
sdfafjfj
10[soflib@localhost ~]$ sort -k2,3 more_h10
dfj'afja'f
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
fdsfjdfljdf
jd;fj'asldfja'
sdfafjfj
1 2 3 4 5 6 7 8 9 10
a b c d e f g h i j k l m n o p q r s t
[soflib@localhost ~]$
[soflib@localhost ~]$ sort -k2,3 more_h10
dfj'afja'f
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
fdsfjdfljdf
jd;fj'asldfja'
sdfafjfj
1 2 3 4 5 6 7 8 9 10
a b c d e f g h i j k l m n o p q r s t
[soflib@localhost ~]$ comm -12 mfile more_h10
a b c d e f g h i j k l m n o p q r s t
1 2 3 4 5 6 7 8 9 10
sdfafjfj
fdsfjdfljdf
dsfjasfjef
fafjdeofpfj
fas[fjpdofja]fpjopfja[
fdafui[j
jd;fj'asldfja'
dfj'afja'f

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值