课程: Learning Linux Command Line
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Manipulate text with awk, sed, and sort
- [Instructor] One of the tasks of a system administrator, a systems analyst, a scientist, or a programmer is to make use of data from various logs or outputs. We've seen how to look at files and how to search within them. So now let's take a look at reaching in and extracting particular data and presenting it in different ways. There's a few common tools for this and which one we used is largely a matter of preference. So it's helpful to be at least a little bit familiar with both. These tools are called awk and sed. Both tools are widely used in command-line operations, and you'll see them both as you explore system administration and systems programming. What awk is great at and is commonly used for in scripts is pulling data out of a file according to a rule. To define this rule, we write an awk program either right at the command line or in a separate file if it's very complex to tell awk how to get the data we…
内容
-
-
-
-
-
-
The Unix philosophy2 分钟 29 秒
-
(已锁定)
Use pipes to connect commands together2 分钟 41 秒
-
(已锁定)
View text files with cat, head, tail, and less4 分钟 44 秒
-
(已锁定)
Search for text in files and streams with grep4 分钟 30 秒
-
(已锁定)
Manipulate text with awk, sed, and sort6 分钟 50 秒
-
(已锁定)
Edit text with Vim4 分钟 35 秒
-
(已锁定)
Edit text with nano2 分钟 49 秒
-
(已锁定)
Working with tar and zip archives8 分钟 17 秒
-
(已锁定)
Challenge: Create and share a file28 秒
-
(已锁定)
Solution: Create and share a file1 分钟 48 秒
-
(已锁定)
Output redirection5 分钟 11 秒
-
(已锁定)
Exploring environment variables and PATH3 分钟 54 秒
-
(已锁定)
Challenge: Extract information from a text file1 分钟 8 秒
-
(已锁定)
Solution: Extract information from a text file3 分钟 28 秒
-
-
-