Chapter 15 Regular Expression


Chapter 15 Regular Expression

A regular expression is a user-defined pattern that allows Linux utilities to filter text. The figure below shows the process of filtering data using regular expressions. For example, the "*' character lists all files that match the pattern. Let's take a look at the example below. $ ls -al da* -rw-r--r-- 1 ==>List all files starting with da -rw-r--r-- 1 rich rich 25 Dec 4 12:40 data.ts -rw-r--r-- 1 rich rich 180 Nov 26 12:42 data1 -rw-r--r-- 1 rich rich 45 Nov 26 12:44 data2 -rw-r--r-- 1 rich ri...



원문링크 : Chapter 15 Regular Expression