Basic Linux Commands | The grep Command – Your Text Search Master

Basic Linux Commands | The grep Command - Your Text Search Master

grep Command – Your Text Search Master Command Overview In the world of Linux, the grep command is like a master of the art of searching. Its name comes from “Global Regular Expression Print,” which means it can perform global searches in text using regular expressions. This search master can not only find content in … Read more

Essential Linux Commands: The Three Musketeers – sed

Essential Linux Commands: The Three Musketeers - sed

01 About the Three Musketeers of Linux grep: Filters keyword information data. Mainly used to search for data within text. sed: Edits text data and modifies the original file content. awk: Filters and extracts data from files, and can format the output. awk can also present the processed data in a more visually appealing way. … Read more

Don’t Let Basic Linux Skills Hold You Back! Do You Really Understand These Shell Tricks?

Don't Let Basic Linux Skills Hold You Back! Do You Really Understand These Shell Tricks?

Click the blue “Most Programmer” to follow me! Add a “star” to get daily tech learning at 18:03 Shell is the core weapon of the Linux system, but many people only know the basic commands likels、cd、rm and nothing more. The following advanced tricks will help you say goodbye to being a “Shell novice” and boost … Read more

Introduction to Linux Shell Programming (Part 2) – grep, sed, awk

Introduction to Linux Shell Programming (Part 2) - grep, sed, awk

Learning and Practicing This article describes commands related to text processing in Shell programming, such as grep, sed, and awk grep: <span>grep is a text search tool used to search for lines in files that match one or more regular expressions.</span> <span>It is fast, flexible, and the standard tool for text searching.</span> <span>grep supports various … Read more

Detailed Explanation of the Linux Awk Command

Detailed Explanation of the Linux Awk Command

(Click the public account above to quickly follow) Source: ggjucheng Link: http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html Introduction Awk is a powerful text analysis tool. Compared to grep for searching and sed for editing, awk is particularly powerful in data analysis and report generation. In simple terms, awk reads files line by line, slicing each line using space as the … Read more

Detailed Explanation of the Linux awk Command

Detailed Explanation of the Linux awk Command

(Click the public account above to quickly follow) Source: ggjucheng Link: http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html Introduction awk is a powerful text analysis tool. Compared to grep for searching and sed for editing, awk is particularly powerful in data analysis and report generation. In simple terms, awk reads files line by line, slicing each line using space as the … Read more

A Collection of Text Processing Tools in Linux Shell

A Collection of Text Processing Tools in Linux Shell

(Click the public account above to quickly follow) From: cnblogs Link: http://www.cnblogs.com/me115/p/3427319.html This article will introduce the most commonly used tools for text processing in Shell under Linux: find, grep, xargs, sort, uniq, tr, cut, paste, wc, sed, awk; The examples and parameters provided are the most commonly used and practical; My principle for using … Read more

The Power of sed Command in Linux: Replacement Techniques

The Power of sed Command in Linux: Replacement Techniques

The replacement function of sed is very powerful and is also the most common use of sed. By default, sed does not actually modify the file. If you want to write the modified content back to the file, you need to add the -i option. Command syntax: sed ‘[address range|pattern range] s#[keyword to be replaced]#[replacement … Read more

The Three Musketeers of Linux: Mastering Regular Expressions, AWK, and Sed

The Three Musketeers of Linux: Mastering Regular Expressions, AWK, and Sed

Regular Expressions Basic regular expression ( ^, s, ., [], *) metacharacters Linux regular expressions are tools used for processing large amounts of strings, defining a set of rules and methods to match specific text patterns. Regular expressions consist of ordinary characters (such as letters a to z) and special characters (also known as metacharacters) … Read more

C++ Competition Daily Problem – Day 704

C++ Competition Daily Problem - Day 704

Today is the 704th day of learning programming with the cool rain! Hello, everyone! This is the problem from the GESP Level 3 Examination. Day 704 GESP Level 3 Examination in March 2025 Problem 2: Word Frequency Count Problem Description In text processing, counting the frequency of words is a common task. Now, given n … Read more