- 论坛徽章:
- 39
|
- [root@DC-202 ~]# grep --version
- grep (GNU grep) 2.20
- Copyright (C) 2014 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
- [root@DC-202 ~]# lsb_release -a
- LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
- Distributor ID: CentOS
- Description: CentOS release 6.8 (Final)
- Release: 6.8
- Codename: Final
- [root@DC-202 ~]# echo '1234' |grep -o '^.'
- 1
- [root@DC-202 ~]# echo 1234 |grep -o '^.'
- 1
- [root@DC-202 ~]#
复制代码 |
|