ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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!

ความคิดเห็น • 40

  • @remfly1807
    @remfly1807 3 ปีที่แล้ว +30

    I get very happy when I see that a new video about CLI tools gets uploaded, Linux terminal FOR THE WIN!

  • @HanBurritoz
    @HanBurritoz 3 ปีที่แล้ว +39

    Hey dt, I would really like to see you cover things like /dev/random, /dev/null and how to make useful things with them.

  • @gordonchan4801
    @gordonchan4801 3 ปีที่แล้ว +10

    lmao just discovered shuf for setting random wallpaper three hours before this video wth

    • @DistroTube
      @DistroTube  3 ปีที่แล้ว +2

      That's typically how I get random things, like a random wallpaper, random song, random picture, etc. Shuf is very useful.

  • @antares1694
    @antares1694 3 ปีที่แล้ว +3

    I love these utility specific series. That's what got me to subscribe to your channel.

  • @jomo2483
    @jomo2483 3 ปีที่แล้ว +3

    Officially switched to Linux from Windows. Hopefully I can get a hang of this terminal

  • @georgetonelli
    @georgetonelli 3 ปีที่แล้ว +2

    Really nice work that you are doing !!!

  • @machman23
    @machman23 7 หลายเดือนก่อน +1

    Unique stuff!

  • @crazychicken0378
    @crazychicken0378 3 ปีที่แล้ว +1

    Thanks DT, the more gnu the gbetter

  • @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.

  • @MsDuketown
    @MsDuketown 6 หลายเดือนก่อน

    Bob for ever. 🇯🇲
    Greets from ❌❌❌ Amsterdam-North❌❌❌

  • @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.

  • @gogogogogogogogogogog9
    @gogogogogogogogogogog9 3 ปีที่แล้ว +3

    debian 11 has just relesed

  • @BotYoutubevertification
    @BotYoutubevertification 3 ปีที่แล้ว +2

    Debian 11 is out review please

  • @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 2 ปีที่แล้ว

      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 ปีที่แล้ว +1

    "it does the job in under a minute"

  • @eeaaay
    @eeaaay 3 ปีที่แล้ว

    This! is! Baaaash!

  • @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

  • @martinvandenbroek2532
    @martinvandenbroek2532 3 ปีที่แล้ว

    Funny to see you use the "-o" flags instead of "redirection".

    • @twentyrothmans7308
      @twentyrothmans7308 5 หลายเดือนก่อน

      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.

  • @aniislive6800
    @aniislive6800 3 ปีที่แล้ว

    Have you tried vieb browser just try it based on vim entirely

  • @stonehen1163
    @stonehen1163 2 ปีที่แล้ว

    CLI cut-ups generator.

  • @gksudolol
    @gksudolol 3 ปีที่แล้ว +2

    Last

  • @yuke...
    @yuke... 3 ปีที่แล้ว

    ok

  • @thefossenjoyer3346
    @thefossenjoyer3346 3 ปีที่แล้ว +2

    Fake first! 😂

  • @jonnykopp
    @jonnykopp 3 ปีที่แล้ว +1

    \o/

  • @nxhuigod
    @nxhuigod 3 ปีที่แล้ว +1

    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!

    • @shahratinmahmud
      @shahratinmahmud 3 ปีที่แล้ว

      @Bitten Apple instructional videos cant be controversial. stop saying random ****

  • @georgenaranjo5704
    @georgenaranjo5704 3 ปีที่แล้ว +2

    Third