ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Three Incredibly Useful Command Line Tools (shuf, sort, uniq)
ฝัง
- เผยแพร่เมื่อ 13 ส.ค. 2021
- 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/man/1/shuf
► linux.die.net/man/1/sort
► linux.die.net/man/1/uniq
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/
🎵 Ardour: ardour.org/
💻 VirtualBox: www.virtualbox.org/
🗒️ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!
I get very happy when I see that a new video about CLI tools gets uploaded, Linux terminal FOR THE WIN!
Hey dt, I would really like to see you cover things like /dev/random, /dev/null and how to make useful things with them.
lmao just discovered shuf for setting random wallpaper three hours before this video wth
That's typically how I get random things, like a random wallpaper, random song, random picture, etc. Shuf is very useful.
I love these utility specific series. That's what got me to subscribe to your channel.
Officially switched to Linux from Windows. Hopefully I can get a hang of this terminal
Really nice work that you are doing !!!
Unique stuff!
Thanks DT, the more gnu the gbetter
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.
Bob for ever. 🇯🇲
Greets from ❌❌❌ Amsterdam-North❌❌❌
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.
debian 11 has just relesed
@inodeska lol
@inodeska so we want dt to review it
Debian 11 is out review please
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).
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.
"it does the job in under a minute"
This! is! Baaaash!
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).
He's made videos on them.... Look it up
Funny to see you use the "-o" flags instead of "redirection".
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.
Have you tried vieb browser just try it based on vim entirely
CLI cut-ups generator.
Last
ok
Fake first! 😂
\o/
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!
@Bitten Apple instructional videos cant be controversial. stop saying random ****
Third