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

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

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.
@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.
@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
@mehmetkaraman3710
@mehmetkaraman3710 3 жыл бұрын
these series are legitimately good. keep them coming, DT!
@paintmysh1t
@paintmysh1t 3 жыл бұрын
These series are awesome! Please continue!
@meeexy116
@meeexy116 3 жыл бұрын
really enjoying this type of videos. Would love to see more.
@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.
@fahimabrar2922
@fahimabrar2922 3 жыл бұрын
I love this new series of videos. Thank you
@taidee
@taidee 3 жыл бұрын
I definitely like this series, this is a super back to basics series.
@mansourq6512
@mansourq6512 3 жыл бұрын
Thank you so much and please keep up your great job .... THUMBS up as usual
@livelifekingsize1983
@livelifekingsize1983 Жыл бұрын
very good episode bro. love your work
@marcin774
@marcin774 3 жыл бұрын
beautiful work DT
@swami1111
@swami1111 2 жыл бұрын
Thank you for these series....really very helpful 👍
@mariusavram7823
@mariusavram7823 3 жыл бұрын
Thank you! Very good videos. Keep it up.
@muddyexport5639
@muddyexport5639 3 жыл бұрын
Just keep it up -- good vids.
@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!
@sunshadow9704
@sunshadow9704 10 ай бұрын
Thank you Sir. You are being concise and to the point.
@notalinuxguruguy8063
@notalinuxguruguy8063 3 жыл бұрын
Yes, you should continue. Very helpful information.
@pessimisticbengali265
@pessimisticbengali265 3 жыл бұрын
precise and on-point video. thank you!
@atarg2239
@atarg2239 3 жыл бұрын
Thanks a lot , DT. ☺️
@hiqmatoyedeji9527
@hiqmatoyedeji9527 Жыл бұрын
thank u very much it was really helpful
@BrucesWorldofStuff
@BrucesWorldofStuff 3 жыл бұрын
DT... Yes please continue. Thanks for the video! LLAP
@nithale
@nithale 3 жыл бұрын
Thanks again now I really understood Unix means do one thing and do it well.
@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."
@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
@zestynotions
@zestynotions 3 жыл бұрын
I think its great to have a reminder of the great tools that most have on their computer already
@PauloConstantino167
@PauloConstantino167 3 жыл бұрын
Good work. Teaching other than just entertaining.
@bhaveshverma8629
@bhaveshverma8629 3 жыл бұрын
Very userful tutorial
@alvfig
@alvfig 3 жыл бұрын
Awesome! Thanks!
@tostoday
@tostoday 3 жыл бұрын
Yes Walmart gave lessons of this the other day on my Chromebook 😁
@nickrees4706
@nickrees4706 5 ай бұрын
Super useful. Cut is going to ‘cut down’ my use of awk 😅
@wizardatmath
@wizardatmath 5 ай бұрын
Fabulous ❤
@ChrisAthanas
@ChrisAthanas 3 жыл бұрын
Useful
@greob
@greob 3 жыл бұрын
Nice!
@rtvikkatarya3634
@rtvikkatarya3634 3 жыл бұрын
big fan
@jorgemezger8299
@jorgemezger8299 3 жыл бұрын
This basics are great, do one of "patch"
@raulbonifacio5116
@raulbonifacio5116 3 жыл бұрын
Please, continue.
@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.
@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
@shreym03
@shreym03 3 жыл бұрын
This is weird but could you make a video about how to make our own dotfiles?
@scifregizmoguy
@scifregizmoguy 3 жыл бұрын
You make a video on 'cut' but leave out 'paste'?
@michalbotor
@michalbotor Жыл бұрын
linux: everything is a file linux commands: everything is a text processor
@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?
@aaronexia3110
@aaronexia3110 3 жыл бұрын
do a video on the "rename" command
@KyleLanmon
@KyleLanmon 3 жыл бұрын
sed could probably do something approximating classes with regex
@ashas1537
@ashas1537 2 жыл бұрын
great
@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
@pedrocosta2273
@pedrocosta2273 16 күн бұрын
ctrl+l to clear the screen
@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.
@cpubug
@cpubug 3 ай бұрын
11:02 rose are red. violets are blue. I have five fingers. an the middle is...*🤣🤣🤣🤣🤣
@aserillll
@aserillll 3 жыл бұрын
DT hair config pls
@SFSAtlas
@SFSAtlas 3 жыл бұрын
Go to a barber and ask for "bald"
@0xva
@0xva 3 жыл бұрын
hair bloat
@seiferseifer
@seiferseifer 3 жыл бұрын
"ThIs Is A lInE Of tExt"
@hassanawodi5888
@hassanawodi5888 3 жыл бұрын
Imagine paring this with a db!
@Nathanwithz
@Nathanwithz 3 жыл бұрын
for passwords I would use [:graph:] rather than [:print:]
@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 М.
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 40 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 14 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
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 Use CAT Or GREP When You Can AWK?
11:13
DistroTube
Рет қаралды 77 М.
12 GREAT command line programs YOU recommended!
16:25
The Linux Experiment
Рет қаралды 243 М.
Why I Code on Linux Instead of Windows
7:34
ForrestKnight
Рет қаралды 947 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 291 М.
Rust Programs Every Linux User Should Know About
13:18
DistroTube
Рет қаралды 134 М.
5 Command Line Tools That Boost Developer Productivity (2023)
8:02
How The 'awk' Command Made Me A 10x Engineer
10:40
RobertElderSoftware
Рет қаралды 170 М.
Essential Linux Commands - Cat, Tac and Tee
21:07
DistroTube
Рет қаралды 24 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1 МЛН
Сколько реально стоит ПК Величайшего?
0:37
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 386 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33