In this tutorial, I will show you how to use AWK command in Linux. I have demonstrated use of AWK with a very simple example. You will get to know something new even if you have know AWK before.

Please subscribe to my youtube channel for such tutorials

Please watch the split a file by line number here:

Split utility in Linux/Unix : to break huge file into small pieces

How to keep sessions alive in terminal/putty infinitely in linux/unix : Useful tips

Random value generator and shuffling in python

Intro to class in python

Lists, tuples, dictionary in python

Python basic tutorial for beginners

Python basics tutorial for beginners part 2 -variables in python

Vi editor basic to advance part 1

Vi editor basic to advance part 2

Keyboard remapping in linux, switching keys as per your own choice

How to install/open an on sceen keyboard in Linux/Unix system

Python IDE for windows , linux and mac OS

How to record screen or sessions in Linux/Unix

How to download and install PAGE GUI builder for python

Create a basic Login page in python using GUI builder PAGE

Working with RadioButton in python in PAGE builder

Basic program on Multithreading in python using thread module

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

26 Comments

Ankit Srivastava

April 22, 2020

correct your concept first….

Reply

Bert Visscher

April 22, 2020

You sound very dreamy and not well prepared.

Reply

Kyle Clark

April 22, 2020

at 9:45 your use of awk doesn't have a { print } action within the statement. So is the print action not necessary if you pipe from standard output i.e. print using cat and then pipe into awk?

Reply

Sreejesh Nair

April 22, 2020

The last one on sorting, isn't it easy to pipe the output from awk and use sort -u to eliminate the duplicates

Reply

August XIII

April 22, 2020

Ce9.i OB

Reply

August XIII

April 22, 2020

Cysco

Reply

August XIII

April 22, 2020

Nnpc

Reply

August XIII

April 22, 2020

Justin v.

Reply

August XIII

April 22, 2020

Hi guy.

Reply

Jasper Loren

April 22, 2020

Great video content! Thanks and my critique is find a way to lessen the keyboard sounds.

Reply

Amar Gandhi

April 22, 2020

Hello sir
I humble request to you
Can you please provide me the video on ps,top,and file system in Linux

Reply

seewhatseeabc

April 22, 2020

Damn good

Reply

Nitesh Joshi

April 22, 2020

Can you please explain in detail how the unique query works using awk? I know there are more easy ways of finding the unique value but I appreciate that you have taken the effort to create that query. I just need help with
1. How exactly that query works?
2. What is in the "array" variable?
3. How are the values getting assigned to "array" variable?
4. How the end part ( {array[$0]: print) works and what is assigned to $0 in array variable?

Reply

guna sekhar

April 22, 2020

to remove duplicate vaule using sort command will be much helpfull

Reply

kalash S

April 22, 2020

I like this video, very simple and easy to understand the basics of awk.

Reply

CS Success Gamer

April 22, 2020

cool why does it say gawk in your man page?

Reply

chanks croco

April 22, 2020

thank you sir
#from_morocco

Reply

bhavna sagta

April 22, 2020

Copy pasting commands and that's it. Try not to use cheat sheet while tutoring.

Reply

Mohammed Fahad

April 22, 2020

Hi Folks, I need to find the current date activity in a log file in Oralce linux, How can use awk in script..?? Please help me

Reply

Danny S

April 22, 2020

so why does the header row get counted when 'Age' is ! 24 ? The expected result should have been 3 according to your data set. I can ignore it with c=-1, but that doesn't explain my question.

awk 'BEGIN {c=0;}
$5>=24{c++;}
END {print "there are: ", c;}' employee.txt
there are: 4

Reply

Danny S

April 22, 2020

what is the link to your blog site for more information??

Reply

Kailash Yadav

April 22, 2020

I need help urgent
I've list of 10k Usernames and passwords and i want to know that how can i filter the usernames having password with the length of 8 characters (i.e 12345678)
please help

Reply

Gayathri Gowda

April 22, 2020

Hi .. I want to search a string "<myconfig>abcd</myconfig>" in a file called "Configuration.conf" and if the string is not present in that file then i want to insert it exactly under the line "#LoadConfiguration".. could you please help.. thanks in advance

Reply

Mr. Sachin

April 22, 2020

Crack rhel7 root password tekchands.blogspot.com

Reply

Karaikal Short Film Makers

April 22, 2020

A very neat and concise video. thanks for your effort. A suggestion: you can minimize the terminal or keep the prompt on the top of the screen, so that it would be easily visible. most of the time the bottom bar of youtube player is hiding what you are typing.

Reply

Kunal Saha

April 22, 2020

Nice stuff and the best part you are using Linux as your desktop…. i will iframe all your videos later 😉 @www.cyberkeeda.com

Reply

Leave a Reply