Two Powerful Command Line Utilities 'cut' And 'tr'

  Рет қаралды 32,555

DistroTube

DistroTube

Күн бұрын

Recently, I've made videos on command line utilities like 'awk' and 'sed'. In this video, I cover two powerful command line utilities--'cut' and 'tr'. The 'cut' command removes sections from each line of a file. The 'tr' command translates or deletes characters from standard input.
REFERENCED:
► linux.die.net/man/1/cut
► linux.die.net/man/1/tr
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.paypal.com/cgi-bin/webscr...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/stores/distrotube
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
SOCIAL PLATFORMS:
🗨️ Mastodon: distrotoot.com/@derek
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/$/invite/@DistroTu...
DT ON THE WEB:
🕸️ Website: distrotube.com/
🐿️ Gemini Capsule: gemini://distro.tube
📁 GitLab: gitlab.com/dwt1
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
🎵 Audacity: www.audacityteam.org/
💻 VirtualBox: www.virtualbox.org/
🗒️ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!

Пікірлер: 81
@crazychicken0378
@crazychicken0378 3 жыл бұрын
I wouldn’t even know how to find these utilities so continuing this series of videos is actually heartwarming
@hocky-ham324-zg8zc
@hocky-ham324-zg8zc 3 жыл бұрын
To learn more about these types of utilities, you can run “ls /usr/bin” to find pretty much any program that I assume DT will talk about. There will likely be a lot of programs here, but you can run “man [program]” to find out what it does (most, if not all of these programs should have man entries). For example, if you run “ls /usr/bin”, you will see “tr” come up as a result. So you can run “man tr” which will show a bunch of information on the TLDR of its purpose, and how to use it
@alvaroconde
@alvaroconde 19 күн бұрын
This video is fantastic! It's dynamic, full of concrete information, and moves quickly without losing clarity. It strikes a perfect balance, delivering content comprehensibly without rushing through it. Please continue sharing more videos on Linux commands and their combinations!
@janbodnar7815
@janbodnar7815 3 жыл бұрын
these kinds of videos are much better than constantly reviewing new distros
@mikebrown8239
@mikebrown8239 3 жыл бұрын
Yes please continue. I enjoy all of your videos. Thank you so much.
@muddyexport5639
@muddyexport5639 3 жыл бұрын
Just keep it up -- good vids.
@paintmysh1t
@paintmysh1t 3 жыл бұрын
These series are awesome! Please continue!
@raviroy7882
@raviroy7882 3 жыл бұрын
This series you are doing DT is awesome, especially if someone is interested in shell scripting. These techniques even though basic are quite powerful when complemented with the power of shell scripting. Please continue with this series. Thank You.
@mehmetkaraman3710
@mehmetkaraman3710 3 жыл бұрын
these series are legitimately good. keep them coming, DT!
@meeexy116
@meeexy116 3 жыл бұрын
really enjoying this type of videos. Would love to see more.
@fahimabrar2922
@fahimabrar2922 3 жыл бұрын
I love this new series of videos. Thank you
@marcin774
@marcin774 3 жыл бұрын
beautiful work DT
@taidee
@taidee 3 жыл бұрын
I definitely like this series, this is a super back to basics series.
@MarkMcNallyJE
@MarkMcNallyJE 3 жыл бұрын
You should do something like a quick fire overview of utilities like shuf, tac, nl etc most people could use these but won't know about them!
@marco7centurion
@marco7centurion 3 жыл бұрын
My mind was blown when I found out about tac
@agenttank
@agenttank 3 жыл бұрын
@@marco7centurion yeah, using it for a few days now as well... ls -lt lists file by mod-date... when i want them sorted the other way around i use "ls -lt | tac" :-D
@scyth2
@scyth2 3 жыл бұрын
@@agenttank Hmm, I find "ls -ltr" easier to type.
@agenttank
@agenttank 3 жыл бұрын
@@scyth2 oh thanks
@livelifekingsize1983
@livelifekingsize1983 Жыл бұрын
very good episode bro. love your work
@mariusavram7823
@mariusavram7823 3 жыл бұрын
Thank you! Very good videos. Keep it up.
@mansourq6512
@mansourq6512 3 жыл бұрын
Thank you so much and please keep up your great job .... THUMBS up as usual
@notalinuxguruguy8063
@notalinuxguruguy8063 3 жыл бұрын
Yes, you should continue. Very helpful information.
@swami1111
@swami1111 2 жыл бұрын
Thank you for these series....really very helpful 👍
@atarg2239
@atarg2239 3 жыл бұрын
Thanks a lot , DT. ☺️
@sunshadow9704
@sunshadow9704 10 ай бұрын
Thank you Sir. You are being concise and to the point.
@michaelkrailo5725
@michaelkrailo5725 4 ай бұрын
I never use cut because of the deep dive into awk but had to learn it so I could decipher other peoples scripts. This was informative on what the limitations are for the cut command as I was unaware of how the extra spaces could throw off cut.
@pessimisticbengali265
@pessimisticbengali265 3 жыл бұрын
precise and on-point video. thank you!
@aehjr1
@aehjr1 3 жыл бұрын
Not even finished viewing the video, and still say, "Nicely done! You neatly avoid the (usual) UUOC seen in many UNIX/Linux primers."
@BrucesWorldofStuff
@BrucesWorldofStuff 3 жыл бұрын
DT... Yes please continue. Thanks for the video! LLAP
@hiqmatoyedeji9527
@hiqmatoyedeji9527 Жыл бұрын
thank u very much it was really helpful
@nithale
@nithale 3 жыл бұрын
Thanks again now I really understood Unix means do one thing and do it well.
@mitchelvalentino1569
@mitchelvalentino1569 3 жыл бұрын
@DistroTube I enjoy these videos on old-school Unix tools like cut, tr, awk, sed, etc. Have you had a chance to learn ‘sort’ and ‘uniq’?
@SkyyySi
@SkyyySi 3 жыл бұрын
Do sort and uniq really need an explanation video though?
@mitchelvalentino1569
@mitchelvalentino1569 3 жыл бұрын
@@SkyyySi sure, why not? What may be easy for us may be challenging to others. Also, DT has made videos on many entry-level topics. I mention sort and uniq specifically, because they’re powerful and easy to learn, yet often overlooked.
@DistroTube
@DistroTube 3 жыл бұрын
Yea, I'll probably do sort and uniq. Probably throw shuf in there too.
@mitchelvalentino1569
@mitchelvalentino1569 3 жыл бұрын
@@DistroTube good call on shuf. I’m _really_ digging these command line videos!
@nickrees4706
@nickrees4706 5 ай бұрын
Super useful. Cut is going to ‘cut down’ my use of awk 😅
@alvfig
@alvfig 3 жыл бұрын
Awesome! Thanks!
@bhaveshverma8629
@bhaveshverma8629 3 жыл бұрын
Very userful tutorial
@tostoday
@tostoday 3 жыл бұрын
Yes Walmart gave lessons of this the other day on my Chromebook 😁
@PauloConstantino167
@PauloConstantino167 3 жыл бұрын
Good work. Teaching other than just entertaining.
@zestynotions
@zestynotions 3 жыл бұрын
I think its great to have a reminder of the great tools that most have on their computer already
@ChrisAthanas
@ChrisAthanas 3 жыл бұрын
Useful
@SlideRSB
@SlideRSB 3 жыл бұрын
I would have included "paste" in this video since it's basically the inverse utility of "cut". I also think "paste" is a very useful and often overlooked utility.
@LordOfWizardurl
@LordOfWizardurl 3 жыл бұрын
Yeah very nice. I use paste for making a database file from many curls. It is awesome. And does my work like a charm. And i can acess them through awk or i can make markdown tables with sed
@greob
@greob 3 жыл бұрын
Nice!
@wizardatmath
@wizardatmath 5 ай бұрын
Fabulous ❤
@rtvikkatarya3634
@rtvikkatarya3634 3 жыл бұрын
big fan
@raulbonifacio5116
@raulbonifacio5116 3 жыл бұрын
Please, continue.
@michalbotor
@michalbotor Жыл бұрын
linux: everything is a file linux commands: everything is a text processor
@jorgemezger8299
@jorgemezger8299 3 жыл бұрын
This basics are great, do one of "patch"
@Sanmayce
@Sanmayce 3 жыл бұрын
Can you made a video about removing/printing all duplicate lines? It is often needed when a sorted file has to be cleared of duplicates.
@ashas1537
@ashas1537 2 жыл бұрын
great
@omarmagdy1075
@omarmagdy1075 2 жыл бұрын
really like this video but would like to note that sed would can pretty much do what tr did through basic regex knowledge for example you can replace lower case to upper case with this command: *echo "This is a line of text" | sed 's/[a-z]/\U&/g'* and upper to lower with this one: *echo "This is a line of text" | sed 's/[A-Z]/\L&/g'* you could also replicate the compliment function with the carrot symbol ^ inside square brackets like so: *echo "this is some text and numbers 1234" | sed 's/[^0-9]//g'* (This means that anything that is not a digit replace it with empty string) but of course using tr for these tasks would probably be a better idea
@ashokg4008
@ashokg4008 2 жыл бұрын
It’s about writing a more readable solution
@omarmagdy1075
@omarmagdy1075 2 жыл бұрын
@@ashokg4008 I was just pointing out that sed can probably do anything with proper knowledge of regexes
@scifregizmoguy
@scifregizmoguy 3 жыл бұрын
You make a video on 'cut' but leave out 'paste'?
@shreym03
@shreym03 3 жыл бұрын
This is weird but could you make a video about how to make our own dotfiles?
@FreeRoger
@FreeRoger 3 жыл бұрын
i dare you to make a video [or a series] on linux from scratch
@SFSAtlas
@SFSAtlas 3 жыл бұрын
Can you make a video reviewing Andronix?
@robimalco
@robimalco 3 жыл бұрын
Ehy @DistroTube, can you make a video about that is happening with Audacity please?
@heriyansyahmirsuma7421
@heriyansyahmirsuma7421 3 жыл бұрын
Hey dt how about a video for voice command linux programing or show case. I thing it would be a cool video
@sergten
@sergten 3 жыл бұрын
What's that 'command not found' processor that printed 'Roses are red'?
@DistroTube
@DistroTube 3 жыл бұрын
gitlab.com/dwt1/bash-insulter
@sergten
@sergten 3 жыл бұрын
That's awesome. If you're planning a video on shell scripting - maybe use this as an example.
@seiferseifer
@seiferseifer 3 жыл бұрын
"ThIs Is A lInE Of tExt"
@aaronexia3110
@aaronexia3110 3 жыл бұрын
do a video on the "rename" command
@cpubug
@cpubug 3 ай бұрын
11:02 rose are red. violets are blue. I have five fingers. an the middle is...*🤣🤣🤣🤣🤣
@KyleLanmon
@KyleLanmon 3 жыл бұрын
sed could probably do something approximating classes with regex
@pedrocosta2273
@pedrocosta2273 16 күн бұрын
ctrl+l to clear the screen
@aserillll
@aserillll 3 жыл бұрын
DT hair config pls
@SFSAtlas
@SFSAtlas 3 жыл бұрын
Go to a barber and ask for "bald"
@0xva
@0xva 3 жыл бұрын
hair bloat
@Nathanwithz
@Nathanwithz 3 жыл бұрын
for passwords I would use [:graph:] rather than [:print:]
@hassanawodi5888
@hassanawodi5888 3 жыл бұрын
Imagine paring this with a db!
@gustavomaurizio2606
@gustavomaurizio2606 3 жыл бұрын
Just use regex
@sevenbark
@sevenbark Жыл бұрын
Good stuff! Here's a 'tr' that does a rot13 on text: tr 'a-zA-Z' 'n-za-mN-ZA-M'
@LenQuerido
@LenQuerido 3 жыл бұрын
Nice!
Learning Sed Is Beneficial For Linux Users
19:27
DistroTube
Рет қаралды 82 М.
Xargs Should Be In Your Command Line Toolbag
16:24
DistroTube
Рет қаралды 97 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 32 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 26 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 17 МЛН
Saving Time At The Command Line
13:49
DistroTube
Рет қаралды 75 М.
EVERYONE Needs to Learn a Little Bit of AWK!
16:29
Gary Explains
Рет қаралды 396 М.
Why I Code on Linux Instead of Windows
7:34
ForrestKnight
Рет қаралды 947 М.
Why Use CAT Or GREP When You Can AWK?
11:13
DistroTube
Рет қаралды 77 М.
Essential Linux Commands - Cat, Tac and Tee
21:07
DistroTube
Рет қаралды 24 М.
How The 'awk' Command Made Me A 10x Engineer
10:40
RobertElderSoftware
Рет қаралды 170 М.
Why Linux is better for (most) developers!
14:59
The Linux Experiment
Рет қаралды 469 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 291 М.
10 AWESOME Linux Terminal Applications and Utilities
16:18
TechHut
Рет қаралды 139 М.
grep: A Practical Guide
13:55
Navek
Рет қаралды 71 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 16 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 2 МЛН