1 2 3 | # grep root /etc/passwd root:x:0:0:root:/root:/bin/bash operator:x:11:0perator:/root:/sbin/nologin |
1 2 | # grep "^root" /etc/passwd root:x:0:0:root:/root:/bin/bash |
1 2 3 4 | one two three four five six seven eight nine ten eleven twelve |
1 | # cut -f2 sample |
1 2 3 4 | two five eight eleven |
1 | # cut -f1, 3 sample |
1 2 3 4 | one three four six seven nine ten twelve |
1 2 3 4 5 6 7 8 9 | # ls -l | cut -d" " -f5 root 562 root root root root root root |
1 2 3 4 5 6 7 8 9 | # ls -l | cut -c16 r r r r r r r |
1 | # ls -l | cut -c16-24 |
1 2 3 4 5 6 7 8 9 | # ls -l | cut -c55- a.out cscope-15.5 cscope-15.5.tar cscope.out memo search_items test.c test.s |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # cut -d":" -f1 /etc/passwd root bin daemon adm lp sync shutdown halt news uucp operator |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # cut -d":" -f1,6 /etc/passwd root:/root bin:/bin daemon:/sbin adm:/var/adm lp:/var/spool/lpd sync:/sbin shutdown:/sbin halt:/sbin mail:/var/spool/mail news:/etc/news uucp:/var/spool/uucp operator:/root |
1 2 3 | IBM Global Services |
1 2 3 | United States United Kingdom India |
1 2 3 4 | # paste fileone filetwo IBM United States Global United Kingdom Services India |
1 2 3 4 | # paste -d", " fileone filetwo IBM, United States Global, United Kingdom Services, India |
1 2 3 | # paste -s fileone filetwo IBM Global Services United States United Kingdom India |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |