[root@Greendays lianshou]# cat ah
1a
2b
3c
4d
[root@Greendays lianshou]# awk '{print $0 $0}' ah
1a1a
2b2b
3c3c
4d4d
[root@Greendays lianshou]# awk '{print $0 $0}' ah
1a1a
2b2b
3c3c
4d4d
[root@Greendays lianshou]# awk '{print $0"\n"$0}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# sed 'p' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '{print;print}' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# paste -d'\n' ah ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '1;1' ah
1a
1a
2b
2b
3c
3c
4d
4d
[root@Greendays lianshou]# awk '1' ah
1a
2b
3c
4d
阅读(388) | 评论(0) | 转发(0) |