Bash Scripting Basics - Part 7, Brace Expansion, Parameter Expansion, Globbing

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

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

  • @kychemclass5850
    @kychemclass5850 8 หลายเดือนก่อน

    Nice. Thanks.

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

    One more tip I forgot to mention for Brace Expansions. If you include a prefix and/or suffix before/after the braces, you can create a list of words. For instance,
    echo st{ea,ud}y
    will print out: steady study
    Enjoy!

  • @ChrisCox-wv7oo
    @ChrisCox-wv7oo ปีที่แล้ว +1

    Great video. The water drop sound effect is distracting.

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

    Great Video, many thanks sir

  • @qodino
    @qodino  6 ปีที่แล้ว

    ERRATA:
    20:18 what is shown is the current directory PLUS all the directories on the stack, that is why "Downloads" appears twice in the list!

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

    Can you please explain why execute the bash file? I tried it, but it didn't work

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

      Hi, please check this on using SOURCE and . to execute bash scripts: linuxize.com/post/bash-source-command/linuxize.com/post/bash-source-command/
      It's possible that '.' might not work on all systems, did you try using 'source' instead?

  • @blackfaithdoom9018
    @blackfaithdoom9018 6 ปีที่แล้ว

    This is valid for Bash version 3 ?

    • @blackfaithdoom9018
      @blackfaithdoom9018 6 ปีที่แล้ว

      I guess it is Bash v4, right ?

    • @qodino
      @qodino  6 ปีที่แล้ว

      Hi,@@blackfaithdoom9018 . Sorry for the late reply, but these should all work in Bash 3 as well. I played with most of these in Mac OS and it runs on Bash 3.2. Regarding Bash v4, here is a summary of what's been added: wiki.bash-hackers.org/bash4