[root@localhost basic_test]# cat -E pass.txt
yes:no:hi:hello:maybe:welcome$
ok:awk:bird:amd:tmd:intel:ati$
name:linux:unix:gnu:bsd:open$
suse:ubuntu:fedora:redhat:now$
china:usa:korea:japan:enland:old$
[root@localhost basic_test]# cat -n pass.txt
1 yes:no:hi:hello:maybe:welcome
2 ok:awk:bird:amd:tmd:intel:ati
3 name:linux:unix:gnu:bsd:open
4 suse:ubuntu:fedora:redhat:now
5 china:usa:korea:japan:enland:old
[root@localhost Desktop]# cat -v desktop.ini
[.ShellClassInfo]^M # ^M 为 win 下的换行符
CLSID={645FF040-5081-101B-9F08-00AA002F954E}^M
[root@localhost Desktop]# cat -T test.txt
tab^Itab^Itab
oot@bt:~# cat tmp.txt
hello
hello world
hello linux
hello shell
root@bt:~# cat -s tmp.txt
hello
hello world
hello linux
hello shell
cat tmp.txt |tr -s '\n'
hello
hello world
hello linux
hello shell
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |