FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
No Result
View All Result

Linux Terminal Basics: Grep

admin by admin
May 25, 2020
in Lập Trình Linux
13
Linux Terminal Basics: Grep



Grep can be used for finding text within a file or output from previous command. You can use Regex with grep (or egrep), which I cover in this video.

Bash Regex Cheatsheet:

Background from Charlie Henson:
Beach And Nebula –

Like my channel? Please help support it:
Patreon:
Paypal:

Follow me on Social Media
Google+
Twitter:
Minds:

Nguồn: https://ftlinuxcourse.com

Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux

Xem thêm Bài Viết:

  • Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
  • Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
  • Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
  • Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
  • Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Tags: Youtube
Previous Post

Coronavirus Pandemic 22 05 2020 Coronavirus Pandemic: Real Time Counter, World Map, News

Next Post

Long bo KCN Tuyển Tập Những Bài Hát Hay Nhất | Có Phụ Đề Việt ⭐⭐⭐⭐⭐

Next Post
Long bo KCN Tuyển Tập Những Bài Hát Hay Nhất | Có Phụ Đề Việt ⭐⭐⭐⭐⭐

Long bo KCN Tuyển Tập Những Bài Hát Hay Nhất | Có Phụ Đề Việt ⭐⭐⭐⭐⭐

Comments 13

  1. Inaflap says:
    3 years ago

    You can also return the lines around the matching line.
    grep -A3 pattern filename will include the 3 lines after the match.
    grep -B4 " " to include 4 lines before the match.
    grep -C2 " " to include 2 lines before and 2 lines after the match.

    Reply
  2. There Is No Spoon says:
    3 years ago

    Knowing Grep turns you from a competent IT guy into a full on hacker. Just need a black hoodie.

    Reply
  3. Paras Pandey says:
    3 years ago

    very helpful n precise. Sounds UK or Australian accent.

    Reply
  4. Vincent Lantaca says:
    3 years ago

    instead of:

    $ ps -a | grep [[:space:]][[:digit:]][[:space:]]

    can't you just do:

    $ ps -a | egrep ' [0-9] '

    or does that not always work?

    Reply
  5. Learn Linux says:
    3 years ago

    If in a script and it's not huge file (or otherwise, performance isn't an issue), I always opt for a pure-shell appraoch in my programs, both personal and published on GitHub. For example, here I'm getting the currently used RAM, using just the two processes (bash and free):

    while read -a X; do
    if [ "${X[0]}" == "Mem:" ]; then
    printf "%-'dMn" "${X[2]}"
    break
    fi
    done <<< "$(/usr/bin/free -m)"

    Whereas most people would wind up using bash, free, grep, cut, and God knows what else; I consider this massively inefficient and messy. That said, it really does depend on the task, and obviously this is more advanced than a simple grep and cut, but thought I'd still show passers-by my approach.

    Reply
  6. Taco Joe says:
    3 years ago

    Noice.

    Reply
  7. Xmetal says:
    3 years ago

    I have to just take a moment to say how much I am loving this series. I love learning new things about commands I already knew, and new CLI commands, that can help me in my daily tasks

    Reply
  8. Jørgen Mortensen says:
    3 years ago

    Please do a tutorial about cmatrix, sl, ddate and xlogo.

    Reply
  9. David says:
    3 years ago

    <3

    Reply
  10. Crux161 says:
    3 years ago

    GNU grep v. BSD grep feels like a missing section of this video. People using a Mac will in some instances have a much different experience without first installing core utils through some 3rd party source. I remember finding that out when I tried `grep -i…` in OS X years ago.

    Reply
  11. Nir Regev says:
    3 years ago

    Worth mentioning : -F to search for non regex strings (faster when handling huge files)

    Reply
  12. Firmware Dell says:
    3 years ago

    Why do you hide the window decorations you present on ? I noticed that in your recent videos. Still on KDE Neon ?

    Reply
  13. Linux Spot says:
    3 years ago

    Using grep -rn is a real life saver for coders, especially within a large codebase. I've been using it for years.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

January 17, 2021
Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

June 1, 2021
Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

January 26, 2021
Địa chỉ bán đèn tuýp LED Philips uy tín và chất lượng trên thị trường?

Bán đèn tuýp led Philips – Skyled

July 27, 2020
Lựa chọn chủ đề in áo thun phù hợp

Lựa chọn dịch vụ in áo thun cotton cần lưu ý gì?

August 2, 2020
Cần xác định được điểm đặt pallet cao nhất để mua xe

Bí quyết chọn mua xe nâng điện đẩy tay

August 3, 2020

Về Chúng Tôi

Báo ftlinuxcourse.com 24h – Đón xem những tin tức mới nhất về tình hình chính trị, xã hội, an ninh trật tự, văn hóa – giải trí, thể thao, thông tin trong ngày.

  • Liên Hệ
  • Chính Sách Bảo Mật

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.