How does the grep command extract the columns you need]

Source: Internet
Author: User
[How to extract the columns you need using the grep command]-Linux general technology-Linux technology and application information. The following is a detailed description. The data information is as follows:
11:02:34 | 60661704 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661704 | 127.0.0.1 | unknown | create | user_mobile
20080602/log_mail_users: 11:03:08 | 60661705 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661705 | 127.0.0.1 | unknown | create | user_mobile
20080602/log_mail_users: 11:03:22 | 60661706 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661706 | 127.0.0.1 | unknown | come | user_mobile
20080602/log_mail_users: 11:03:36 | 03982630013 | mail | unknown | shangdu.com | ihome0 | ihome0 | 03982630013 | 127.0.0.1 | unknown | create | user_mobile
20080602/log_mail_users: 11:04:08 | 60661707 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661707 | 127.0.0.1 | unknown | create | user_mobile
20080602/log_mail_users: 11:04:58 | 60661708 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661708 | 127.0.0.1 | unknown | come | user_mobile
20080602/log_mail_users: 11:04:59 | 60661709 | mail | unknown | shangdu.com | ihome0 | ihome0 | 60661709 | 127.0.0.1 | unknown | create | user_mobile

Question: 1.how can I extract the phone number code containing create(( TO THE my.txt file?
2. Make sure that the extracted phone number is not included in the phone number column.
Format: 60661704
60661705
60661706
3. Finally, count the total number of user accounts. Be sure to include "create" (for account opening)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.