5 Practical Cases of Python Regular Expressions for Automation

5 Practical Cases of Python Regular Expressions for Automation

Many colleagues have asked me how to batch process data in spreadsheets, so I will share some text processing tips that I often use at work. The Python ‘re’ library can indeed save us a lot of trouble! 1. Processing Data Exported from Excel Often the Excel data we receive is not standardized and requires … Read more

Practical Linux Text Processing Tools: Essential Skills for Log Analysis

Practical Linux Text Processing Tools: Essential Skills for Log Analysis

tail, grep, and awk are three commonly used command-line tools in Linux/Unix environments. Each has its own focus, but they are often used together to process text data. 1. <span><span>tail</span></span>: View the end of a file Function: Displays the end portion of a file (default last 10 lines), commonly used for viewing logs or real-time … Read more

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