Linux Crash Course - The cut Command

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

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

  • @Wandering_Horse
    @Wandering_Horse 13 วันที่ผ่านมา

    Brilliant, today at work I have been tasked with parsing data from daily bid logs from DLA. In the txt file the NSN # is continuous with the bid request #. I knew there was a command I could use to pull the number out. I was like 'hmm how could I cut the number of that string' Doh. Now I can use grep to parse only the DLA FSC's I am interested in, use the 'cut' command to cut out the NSN's, then output them to a text file I can then paste those into the FLIS database to extract the MLC dates and prices. Brilliant Jay, just brilliant. I am going to look like I actually know what I am doing at work!

  • @ArniesTech
    @ArniesTech ปีที่แล้ว +11

    Absolutely love these crash courses 🙏

  • @Not-THAT-ChrisPratt
    @Not-THAT-ChrisPratt ปีที่แล้ว +2

    OMG! I came here for you to teach me Windoze!!!! (j/k)
    Great video as always, Jay. "Do one thing and do it well," and you have done it again with explaining the cut command. Thank you.

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

    Thanks!!! I have never thought that "cut" could be so interesting

  • @georgewaring7168
    @georgewaring7168 ปีที่แล้ว +4

    Great tutorial as always. Thanks Jay

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

    Jay you learned me some new stuff! I have used the cut command many times, but always for fields, I didn't know that character and byte were options.

  • @samoylov1973
    @samoylov1973 ปีที่แล้ว

    cut -b 7-11,56-61 message.txt
    you could do without additional number and comma in an example at 8 minute mark 🙂

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

    Maybe you could show
    sort and column commands
    For the next chapter

  • @fsxspen
    @fsxspen ปีที่แล้ว

    You should make a video on the lsof command, I noticed it wasn’t listed in your book either.

  • @BrianThomas
    @BrianThomas ปีที่แล้ว

    Hi Jay! I've been a subscriber to your channel for a while now, and I know you've mentioned CEPH a few times in the past. I was wondering if you have plans to do a training video on CEPH in the future? I just attended an amazing CEPH presentation, and it has ignited my interest in the technology. I'm now super excited about it. Your video series has been incredibly helpful for me in learning, and I would love to add CEPH to my HA Proxmox cluster that you helped me to build by the way. Please let us know when you have time. I absolutely love your channel, and you are a phenomenal teacher. Keep up the fantastic work!

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

    I don't want to be negative here, but I've used the cut command a lot.... bad joke... heh Great video.

  • @tolstoievski4926
    @tolstoievski4926 ปีที่แล้ว

    Thank you, very instructive.

  • @cybersecurity324
    @cybersecurity324 ปีที่แล้ว

    Thank you so much for your help.

  • @karthikeyans9346
    @karthikeyans9346 ปีที่แล้ว

    How to use tail command and cut using pipe.Where I can leave the header from file

  • @akindayoakinlabi76
    @akindayoakinlabi76 ปีที่แล้ว

    Very great video, I must subscribe.
    I know the cut command, just wish to see something new that I didn't know, like I would have love to see how you will use the command for just one line on /etc/passwd
    🙂

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

    Can you help me to follow complete Linux course

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

      there's a whole playlist for that

  • @ABDULKARIMHOMAIDI
    @ABDULKARIMHOMAIDI ปีที่แล้ว

    THANKS

  • @lainerdonet
    @lainerdonet ปีที่แล้ว

    Greattings . I used "cut -d " " -f 9,2 message.txt" and the prompt output was "Linux Wow!" instead of "Wow! Linux". How I can chance the order of output?

    • @SlideRSB
      @SlideRSB ปีที่แล้ว

      You can't change the order with the cut command. You would need to use awk to do that.

  • @verynice5258
    @verynice5258 ปีที่แล้ว

    Thank you

  • @ZubairKhan-vs8fe
    @ZubairKhan-vs8fe ปีที่แล้ว

    Please can somebody explain why Linux still uses Microsoft DOS type commands. Is it still necessary to know these command line when there are graphical user interfaces?

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

      Your point is only valid for desktop. Usually servers dont have GUI. Their only connection available is through ssh which is command line only.
      You can still use GUI but is not the Best
      Also usually GUI doesnt support all the options available on parameters.
      And last but not least, automatization is only possible through command line by scripts

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

      Software developers often work only in the terminal emulator and Servers often doesn't have GUI. Btw also the windows server doesn't have a GUI, so you have to user CMD or Powershell

    • @4X6GP
      @4X6GP ปีที่แล้ว +1

      Very often the command line functions are more powerful and more efficient than using the graphical interface.