RHCSA RHEL 8 - Create simple shell scripts

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

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

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

    Thank you for these videos highlighting all of the sections! They're going to be extremely helpful in helping me pass the RHCSA. Much love!

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

    Man... I fell in love with your videos. I HAD TO subscribe!!! Thank you for your hard work!

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

    Thanks a lot your videos are always straight to the point.

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

    I really do appreciate your work

  • @johnny-mnemonic13
    @johnny-mnemonic13 4 ปีที่แล้ว +5

    You are doing a public service. Thanks a million!

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

    Do you think it's a decent idea to make the .sh script call a python script if you can't remember something important about bash but can remember it in python? Bash's syntax gets weird at times and python (including argparse) is normally preinstalled on RHEL.

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

      Yeah that's right Jim 😂 you can achieve the objectives in anyway you want as long as it's persistent.

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

    My respects Mr.

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

    Thank you!

  • @TonyStark-qu9tn
    @TonyStark-qu9tn 4 ปีที่แล้ว +3

    Thanks man!

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

    great video, helping content

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

    Thank you

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

    Thanks a lot buddy

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

    First of all thank you for this awesome videos. I just want to ask you. This is last video of RHCSA ? And will you upload RHCE videos ? Please answer

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

      RHCE will follow in the new year :)

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

    Thanks for the video! Really enjoying your series.
    I don't think expansion using "${file}" is really needed in the script to rename files. Plus you could simplify by using sed to add the .txt extension:
    file1=`echo $file | sed s/\.log$/\.txt/g`
    mv $file $file1
    I just think it is clearer that way, but there are many ways to achieve the same ends...

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

    14:15 why does the test = 0? why would the ip address = to zero

    • @daniels-mo9ol
      @daniels-mo9ol 2 ปีที่แล้ว +1

      I'm no expert but I assume ping would exit with an error code if it fail, and 0 for OK.

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

    Is this scripting actually needed for RHCSA, seems a bit overkill to me... dunno

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

    Dear start a rhce in detail

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

    sir this time video got very hard on us ...

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

    I used a somewhat simpler solution for renaming the .log to .txt
    #!/bin/bash
    for file in ./*.log
    do
    mv "$file" "${file%.log}.txt"
    done
    exit