Pipes, Grep, Sort Commands: Linux Tutorial 9

preview_player
Показать описание

Click on the time points below to view different sections!

0:07 What are Pipes in Linux?
1:12 'pg' and 'More' commands with example
1:38 The 'grep' Command with example
3:05 The 'sort' Command with example
5:23 Summary

What is a Pipe in Linux?
The Pipe is a command in Linux that lets you use two or more commands such that output of one command serves as input to the next. The symbol is '|'

What is grep in Linux?
If you want to search a particular information the postal code from a text file you can use grep command on command line.
Syntax - grep search_string

What is sort command in Linux?
This command helps in sorting out the contents of a file alphabetically.
Syntax - sort Filename

Like, share and subscribe our channel for more videos.

THANKS! We appreciate you reading this and hope you have a wonderful day!

Sincerely,
Guru99
Рекомендации по теме
Комментарии
Автор

OMG so helpful. My professor could not even come close to how you taught this. WOW. THANKS!

dvgdzga
Автор

Thank You! I was so confused by the "pipe" command until now

QueerBiNatureNYC
Автор

Very clear and simple. I like the your style in explaining the subject.

cornlow
Автор

According to Kernigan the principle advantage of piping is that you don't end up with large intermediate files between commands. Each result is piped into the next command immediately for example the each entry in a directory from using ls (list) can be piped to another command immediately without having to wait for the whole directory inquiry to complete or be stored to file to input to the next command.

TheGodlessGuitarist
Автор

Hello Guru, it's amazing tutorial. Thanks

mjc.
Автор

This is really easy and informative lecturette. Thank you Guru

abhijithsubash
Автор

Your tutorial is good but please remove the music which is not letting me to put concentration on the tutorial, Tnx

MyGardenNewsForYou
Автор

Thank you!  Very concise, with just the necessary information.  But please turn the music down.  

trentarmstrong
Автор

very expressive lecture with details .. loved it...

poonamsaraogi
Автор

Thanks a bunch!!!! Was having trouble using multiple commands with pipelines specifically: cat fruits | grep -v a | sort -r

jazzyg
Автор

Very good.Keep up such a simple explanations.You just owned subscriber and like :)

football
Автор

I needed to learn about grep, I came back for the music <3

johnNYgoesLA
Автор

To be exact, the -i is for "--ignore-case: Ignore case distinctions in both the PATTERN and the input files."

raytry
Автор

A very clear and well-presented lesson

renethomas
Автор

What is function of grep -v a i cant understand its lists a name strings or all one

nasroseblogs
Автор

I need help,
I want to sort in bash file,
Example....

a="10"
b="100"
C="1000"

I want to sort this
$a $b $c

How to sort ?? Please tell me!

salexkorsan
Автор

error and fruits are the random files. I am trying to redirect the lines which do not contain small 'a' and want to sort if in reverse order. However, the command is not working

NOT WORKING - cat fruits | grep -v a > error | sort -r error
WORKING - cat fruits | grep -v a | sort -r > error

WHY ?? @GURU99

vipulberiwal
Автор

the grep command can display the results too without the cat command

Bodyskillz
Автор

ply do video its very important. i have to request so i want to how to installing samba and installing with linux
thank you...

classcyber
Автор

You don't pipe cat in to less or grep if you have only one file.

TheJoseppa
welcome to shbcf.ru