1 00:00:00,000 --> 00:00:03,120 Hello everyone, and welcome to Filters / Text 2 00:00:03,120 --> 00:00:06,480 Processor commands. This is the lecture where I'm 3 00:00:06,480 --> 00:00:09,960 going to show you what are the commands, the text 4 00:00:09,960 --> 00:00:12,990 processing commands that we will cover in this 5 00:00:12,990 --> 00:00:15,210 lecture, and of course, the following lectures. 6 00:00:15,780 --> 00:00:19,170 These text processor commands are very powerful. 7 00:00:19,290 --> 00:00:22,770 That gives a huge advantage to Linux or many other 8 00:00:22,770 --> 00:00:26,730 operating systems. These commands are, cut, that 9 00:00:26,730 --> 00:00:30,900 allows you to cut the output. It takes the 10 00:00:30,900 --> 00:00:33,750 input of a command, or if you're reading a content 11 00:00:33,750 --> 00:00:37,170 of a file, it takes that in as an input, and then 12 00:00:37,200 --> 00:00:41,820 it cuts to your desired output. Then, 13 00:00:41,820 --> 00:00:46,140 goes to awk. awk actually allows you to list by 14 00:00:46,140 --> 00:00:49,260 the columns. Then we have grep and egrep 15 00:00:49,260 --> 00:00:52,710 commands, grep and egrep commands are just like as 16 00:00:52,710 --> 00:00:56,490 if you want to search by the keywords. If you are 17 00:00:56,490 --> 00:01:00,240 searching for a specific word, let's say warning, 18 00:01:00,450 --> 00:01:03,510 in our file, you could just grep for warning, 19 00:01:03,510 --> 00:01:06,840 and into that file, and it will list only the 20 00:01:06,840 --> 00:01:10,350 lines that contains that word warning. Then the 21 00:01:10,350 --> 00:01:13,440 sort command. As you see the name, the sort 22 00:01:13,440 --> 00:01:17,220 command sorts out the output in alphabetical 23 00:01:17,220 --> 00:01:20,580 order. Then we will learn the unique command. The 24 00:01:20,580 --> 00:01:24,510 unique command will not show any duplicates. If 25 00:01:24,510 --> 00:01:28,740 there are words in our file that are 26 00:01:28,740 --> 00:01:33,210 same as the one previous to it, then the unique 27 00:01:33,210 --> 00:01:37,050 command will eliminate all duplicates. And then 28 00:01:37,080 --> 00:01:40,710 last command we will learn is the word count 29 00:01:40,710 --> 00:01:44,730 command, also referred to as Walker command. So 30 00:01:44,730 --> 00:01:47,280 some people refer it as vaca, some people 31 00:01:47,280 --> 00:01:51,450 refer to it as wc count. Anyway, this is the 32 00:01:51,450 --> 00:01:55,980 one that will tells you how many words, how many 33 00:01:55,980 --> 00:02:00,630 letters and how many lines do you have in a file 34 00:02:00,780 --> 00:02:05,520 or in an output. So anyway, we are going to cover 35 00:02:05,550 --> 00:02:10,410 every one of these commands, and I have separated 36 00:02:10,860 --> 00:02:14,490 each lecture based on these commands. So you would 37 00:02:14,490 --> 00:02:19,410 have a very good understanding of how each command 38 00:02:19,410 --> 00:02:24,150 works. So are you ready to go and practice 39 00:02:24,150 --> 00:02:26,880 these commands with me in the next lectures. Let's 40 00:02:26,880 --> 00:02:27,900 go, let's go do it. 41 00:02:27,900 --> 00:02:29,589 [No audio]