Three Incredibly Useful Command Line Tools (shuf, sort, uniq)

  Рет қаралды 15,164

DistroTube

DistroTube

Күн бұрын

Three incredibly useful command line utilities for shuffling and sorting text are: shuf, sort and uniq. They allow you to reorder lines of text, shuffle lines to get a random order, remove duplicated lines, etc. Very handy tools to know, especially for shell scripting!
REFERENCED:
► linux.die.net/...
► linux.die.net/...
► linux.die.net/...
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.paypal.com...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/...
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
SOCIAL PLATFORMS:
🗨️ Mastodon: distrotoot.com...
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/$/i...
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/
🎵 Ardour: ardour.org/
💻 VirtualBox: www.virtualbox...
🗒️ Doom Emacs: github.com/hli...
Your support is very much appreciated. Thanks, guys!

Пікірлер: 37
@remfly1807
@remfly1807 3 жыл бұрын
I get very happy when I see that a new video about CLI tools gets uploaded, Linux terminal FOR THE WIN!
@HanBurritoz
@HanBurritoz 3 жыл бұрын
Hey dt, I would really like to see you cover things like /dev/random, /dev/null and how to make useful things with them.
@antares1694
@antares1694 3 жыл бұрын
I love these utility specific series. That's what got me to subscribe to your channel.
@machman23
@machman23 10 ай бұрын
Unique stuff!
@jomo2483
@jomo2483 3 жыл бұрын
Officially switched to Linux from Windows. Hopefully I can get a hang of this terminal
@georgetonelli
@georgetonelli 3 жыл бұрын
Really nice work that you are doing !!!
@gordonchan4801
@gordonchan4801 3 жыл бұрын
lmao just discovered shuf for setting random wallpaper three hours before this video wth
@DistroTube
@DistroTube 3 жыл бұрын
That's typically how I get random things, like a random wallpaper, random song, random picture, etc. Shuf is very useful.
@007arek
@007arek 3 жыл бұрын
Hi, DT, you should use sort after uniq. A lot of times you will use the commands in a bash script. Recently I've learnt lua and I wander if it is not a better approach to write scripts in a "normal" programming language, cos you don't need to execute many this kind of basics commands.
@crazychicken0378
@crazychicken0378 3 жыл бұрын
Thanks DT, the more gnu the gbetter
@souravpaul_per
@souravpaul_per Ай бұрын
helpful
@gogogogogogogogogogog9
@gogogogogogogogogogog9 3 жыл бұрын
debian 11 has just relesed
@trinib1
@trinib1 3 жыл бұрын
@inodeska lol
@gogogogogogogogogogog9
@gogogogogogogogogogog9 3 жыл бұрын
@inodeska so we want dt to review it
@BotYoutubevertification
@BotYoutubevertification 3 жыл бұрын
Debian 11 is out review please
@leviticus8930
@leviticus8930 3 жыл бұрын
Ahh, I needed shuffling and sorting power getting a friggin squirrel out of the garage. It would hide, then run at me. Spent an hour getting that thing out. The joy of living in the stick ghetto.
@MsDuketown
@MsDuketown 9 ай бұрын
Bob for ever. 🇯🇲 Greets from ❌❌❌ Amsterdam-North❌❌❌
@markmcdonnell
@markmcdonnell 3 жыл бұрын
Can you tell us a bit about the "took 20s" at the end of running one of the commands. I thought it might be a bashrc thing you've setup but it only seemed to be displayed once (that I noticed).
@nicolascastellan2618
@nicolascastellan2618 3 жыл бұрын
Its the time it took to run the command, in this case 20s because he looked at the man page for 20 seconds. It probably only shows up if the command took longer than a few milliseconds.
@fendoroid3788
@fendoroid3788 3 жыл бұрын
"it does the job in under a minute"
@aniislive6800
@aniislive6800 3 жыл бұрын
Have you tried vieb browser just try it based on vim entirely
@martinvandenbroek2532
@martinvandenbroek2532 3 жыл бұрын
Funny to see you use the "-o" flags instead of "redirection".
@twentyrothmans7308
@twentyrothmans7308 9 ай бұрын
I saw that, also. If I were scripting for use by others, I'd be tempted to shuf foo --output=bar because it's there for shuf and sort, but not uniq.
@eeaaay
@eeaaay 3 жыл бұрын
This! is! Baaaash!
@stonehen1163
@stonehen1163 3 жыл бұрын
CLI cut-ups generator.
@nxhuigod
@nxhuigod 3 жыл бұрын
dt. What is dt? For the blind, it is light. For the hungry, it is bread. For the dead, life. For the sick, it is the cure. For the prisoner, it is freedom. For the loner, it is the companion. For the traveler, it is the way. For me, dt is everything. pin this if you love your followers!
@mahmud-i9c
@mahmud-i9c 3 жыл бұрын
@Bitten Apple instructional videos cant be controversial. stop saying random ****
@munkk01
@munkk01 3 жыл бұрын
Hey DT, been watching a ton of your videos. I was curious if you could mention what hardware your production machine is running on? I've been looking to upgrade my machine as it's as old as can be (2013 is the latest a part was added to it).
@plasma7287
@plasma7287 3 жыл бұрын
He's made videos on them.... Look it up
@yuke...
@yuke... 3 жыл бұрын
ok
@gksudolol
@gksudolol 3 жыл бұрын
Last
@thefossenjoyer3346
@thefossenjoyer3346 3 жыл бұрын
Fake first! 😂
@jonnykopp
@jonnykopp 3 жыл бұрын
\o/
@georgenaranjo5704
@georgenaranjo5704 3 жыл бұрын
Third
Ed Is The Standard Text Editor For Unix/Linux
20:50
DistroTube
Рет қаралды 33 М.
Essential Linux Commands - Cat, Tac and Tee
21:07
DistroTube
Рет қаралды 24 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,9 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 319 МЛН
Xargs Should Be In Your Command Line Toolbag
16:24
DistroTube
Рет қаралды 101 М.
Randomly Order Lines on the Command Line with sort or shuf
8:54
Nick Janetakis
Рет қаралды 252
7 (more) AWESOME Linux CLI/Terminal Apps
14:21
TechHut
Рет қаралды 117 М.
Randomness in Bash and Linux: shuf and $RANDOM XD
10:04
Luke Smith
Рет қаралды 20 М.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 304 М.
Your Command Line, Oxidised
10:09
No Boilerplate
Рет қаралды 205 М.
The 12 Linux Apps Everyone Should Know About
21:20
DistroTube
Рет қаралды 474 М.
Shell Aliases Every Linux User Needs
29:03
DistroTube
Рет қаралды 38 М.
EVERYONE Needs to Learn a Little Bit of AWK!
16:29
Gary Explains
Рет қаралды 399 М.
Saving Time At The Command Line
13:49
DistroTube
Рет қаралды 76 М.