Shell Scripting Tutorial

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 860

  • @derekbanas
    @derekbanas  5 років тому +57

    Learn in One Videos for Every Programming Language
    Subscribe to Bookmark them: bit.ly/2FWQZTx
    C++ : ua-cam.com/video/Rub-JsjMhWY/v-deo.html
    Python : ua-cam.com/video/N4mEzFDjqtA/v-deo.html
    Java : ua-cam.com/video/n-xAqcBCws4/v-deo.html
    PHP : ua-cam.com/video/7TF00hJI78Y/v-deo.html
    MySQL : ua-cam.com/video/yPu6qV5byu4/v-deo.html
    JavaScript : ua-cam.com/video/fju9ii8YsGs/v-deo.html
    C# : ua-cam.com/video/lisiwUZJXqQ/v-deo.html
    HTML5 : ua-cam.com/video/kDyJN7qQETA/v-deo.html
    CSS3 : ua-cam.com/video/CUxH_rWSI1k/v-deo.html
    JQuery : ua-cam.com/video/BWXggB-T1jQ/v-deo.html
    TypeScript : ua-cam.com/video/-PR_XqW9JJU/v-deo.html
    ECMAScript : ua-cam.com/video/Jakoi0G8lBg/v-deo.html
    Swift : ua-cam.com/video/dKaojOZ-az8/v-deo.html
    R : ua-cam.com/video/s3FozVfd7q4/v-deo.html
    Haskell : ua-cam.com/video/02_H3LjqMr8/v-deo.html
    Handlebars : ua-cam.com/video/4HuAnM6b2d8/v-deo.html
    Bootstrap : ua-cam.com/video/gqOEoUR5RHg/v-deo.html
    Rust : ua-cam.com/video/U1EFgCNLDB8/v-deo.html
    Matlab : ua-cam.com/video/NSSTkkKRabI/v-deo.html
    Arduino : ua-cam.com/video/QO_Jlz1qpDw/v-deo.html
    Crystal : ua-cam.com/video/DxFP-Wjqtsc/v-deo.html
    Emacs : ua-cam.com/video/Iagbv974GlQ/v-deo.html
    Clojure : ua-cam.com/video/ciGyHkDuPAE/v-deo.html
    Shell : ua-cam.com/video/hwrnmQumtPw/v-deo.html
    Perl : ua-cam.com/video/WEghIXs8F6c/v-deo.html
    Perl6 : ua-cam.com/video/l0zPwhgWTgM/v-deo.html
    Elixir : ua-cam.com/video/pBNOavRoNL0/v-deo.html
    D : ua-cam.com/video/rwZFTnf9bDU/v-deo.html
    Fortran : ua-cam.com/video/__2UgFNYgf8/v-deo.html
    LaTeX : ua-cam.com/video/VhmkLrOjLsw/v-deo.html
    F# : ua-cam.com/video/c7eNDJN758U/v-deo.html
    Kotlin : ua-cam.com/video/H_oGi8uuDpA/v-deo.html
    Erlang : ua-cam.com/video/IEhwc2q1zG4/v-deo.html
    Groovy : ua-cam.com/video/B98jc8hdu9g/v-deo.html
    Scala : ua-cam.com/video/DzFt0YkZo8M/v-deo.html
    Lua : ua-cam.com/video/iMacxZQMPXs/v-deo.html
    Ruby : ua-cam.com/video/Dji9ALCgfpM/v-deo.html
    Go : ua-cam.com/video/CF9S4QZuV30/v-deo.html
    Objective C : ua-cam.com/video/5esQqZIJ83g/v-deo.html
    Prolog : ua-cam.com/video/SykxWpFwMGs/v-deo.html
    LISP : ua-cam.com/video/ymSq4wHrqyU/v-deo.html
    Express : ua-cam.com/video/xDCKcNBFsuI/v-deo.html
    Jade : ua-cam.com/video/l5AXcXAP4r8/v-deo.html
    Sass : ua-cam.com/video/wz3kElLbEHE/v-deo.html

    • @KyleMoran626
      @KyleMoran626 5 років тому +2

      Ok, your format and pace is outstanding. One suggestion for people like me looking for this type of content.
      Expand on your "one video" trademark, experiment a little. I don't know if longer videos actually get less playtime, but it is known that UA-cam's content gets shorter and shorter as people's attention spans are changing. Don't conform to this. Capitalize on the "in one video" thing and maybe add a unique hotword to them (fastpace synonym - something catchy). Man this video style is just great for me, you got a new sub and I'm sending your channel to everyone who wants to learn fast. I rarely comment on videos but had to let you know this is special here. Just gotta promote the brand if your other videos are similar.

    • @hcgaron
      @hcgaron 5 років тому +1

      @@KyleMoran626 yeah excellent video. I'd gladly watch others if I need to brush up.

    • @marcospinto9380
      @marcospinto9380 5 років тому

      I have an importante question :) did you ever meet a stutterer that pronounced your name bananas? JK

    • @braindeveloperdimensional5579
      @braindeveloperdimensional5579 4 роки тому +1

      I really like your tutorials.
      I'm waiting for your TCL tutorial, when is it going to come?

    • @Hellohiq10
      @Hellohiq10 4 роки тому

      What about good old C?

  • @Rozenkrantzz
    @Rozenkrantzz 7 років тому +671

    vim @ 0:55
    bash comments/printing @ 5:05
    variables @ 7:35
    constants @ 8:15
    arithmetic @ 8:39
    using python commands @ 13:08
    multi-line printing @13:45
    functions @ 15:10
    reading input @ 19:16
    conditionals @ 20:00
    logical operators @ 24:27
    files (create / remove) @ 25:24
    strings @ 26:57
    files (checks) @ 29:00
    regular expressions @ 30:43
    more on input / output @ 32:20
    case statements @ 39:00
    parameter expansions @ 42:02
    looping @ 43:47
    arrays @ 50:56
    positional parameters (command line args) @ 56:35

  • @jamespretlow3028
    @jamespretlow3028 8 років тому +253

    I like the speed of your tutorial. There is no time to get distracted.

    • @derekbanas
      @derekbanas  8 років тому +35

      Thank you :)

    • @TheDuckofDoom.
      @TheDuckofDoom. 7 років тому +4

      I need to hit stop every time somebody says anything to me and rewind a bit, but in a good way, as said it cultivates focus.
      (this pace with this type of presentation works well, this pace if part of a general concept/explanatory lecture would not be recommended.)

    • @Androidzombie1
      @Androidzombie1 7 років тому

      I usually watch these videos at 1.5x or 2x speed and also use the cheatsheet as a guide and i find that works for me to quickly go through these videos.

    • @xrafter
      @xrafter 4 роки тому

      @@derekbanas
      You are still slow tho .
      I need to put it to 2x speed

  • @SuperDanny1016
    @SuperDanny1016 8 років тому +143

    Derek you're a mind reader I just started my internship and it's all bash scripting... Great timing Thanks!

    • @derekbanas
      @derekbanas  8 років тому +21

      Awesome :) I'm glad I could help

    • @banu6301
      @banu6301 8 років тому +4

      it happed to me too with the assembly tutorials :))

    • @davidnovosardian6848
      @davidnovosardian6848 7 років тому

      do recruiters like it when they see u can do bash scripting?

    • @thesavagesalmon9464
      @thesavagesalmon9464 5 років тому +1

      @@davidnovosardian6848 Probably a requirement for backend dev jobs. UNIX utilities often used in shell scripts such as grep, cat etc are useful when working in the backend, without any GUI layer

  • @israrahmad4260
    @israrahmad4260 5 років тому +36

    VIM Cheat sheet (based on video, thanks to Derek)
    • "Shift +a" (Upper case A) put you in insert mode
    • "Shift + g" (Upper case G) will let you go to last line
    • Pressing "o" will move you to next line in insert mode after "Shift + g"
    • "w" move forward to next word (first char of word)
    • "b" move backward to last word (first char of word)
    • "0" (zero) beginning of the line. "$" end of the line
    • Global settings like syntax on, autoindent can be saved in vimrc file, located in user home directory. This will make them permanent as well.
    • "Shift + v" (Upper case V) will select the line, use arrow key to select more. "v" will select the character.
    • "d" to delete (or cut) the text.
    • "y" to copy
    • "p" to paste
    • "u" to undo
    • Press Esc for command mode type ":" and commands
    ○ q! -: Quit without saving
    ○ wq -: Save and quit
    ○ set number -: will display the line numbers
    ○ syntax on -: Will show syntax highlighting
    ○ set tabstop=2 -: Set tab space to given number
    ○ set autoindent -: for auto indent new line

    • @derekbanas
      @derekbanas  5 років тому +4

      Thank you for sharing :)

    • @BiloGadget
      @BiloGadget 3 роки тому

      in linux you can also do ctrl-c along with esc to enter command mode. not sure if it translates to mac-os though.

  • @sebastiantu6212
    @sebastiantu6212 5 років тому

    Just starting an internship in 3 days, and they emailed me to "brush up" on linux shell scripting. I've never done it and I'm not sure why they think I have. I finished this video, and it has been hugely helpful! Just a lot of densely packed information so I will probably watch it a couple more times. Thanks a bunch, super helpful!

    • @derekbanas
      @derekbanas  5 років тому

      Thank you :) I wish you the best at your internship!

  • @ilshatabdulmanov2140
    @ilshatabdulmanov2140 3 роки тому

    Out of many ,best in its kind.
    This tutorial beats a line of many others I`ve watched so far.
    This guy deserves a thumbs up.

    • @derekbanas
      @derekbanas  3 роки тому

      Thank you for the compliment I'm happy I could help :)

  • @emiliahane
    @emiliahane 4 роки тому

    correction 53:20 - indirect refferencing using ' ! ' is how to print out indexes
    for i in ${!fav_nums[@]} ... equivalent to for i in ${!fav_nums[*]} ...
    thank you so much!!! great pace and explanations, definitely one of the best tutorials on youtube

    • @derekbanas
      @derekbanas  4 роки тому

      Thank you for the nice compliment :)

    • @xrafter
      @xrafter 4 роки тому

      What is the difference???

  • @wesg01
    @wesg01 4 роки тому

    The best tech vids I have found! I REALLY like the fast pace, and no unnecessary-fluff approach you take. Keep up the great work!

  • @christopherfujino
    @christopherfujino 8 років тому

    Subscribed to you a long time ago because of your great tutorials, but I haven't made the time to watch any of your videos in a real long time. Saw this, and I'd been wanting to learn BASH scripting, and I remembered again why I subscribed. You have the best programming tutorials online bar none, and I really need to spend the time investing in myself by watching more of your videos! Thanks so much!

    • @derekbanas
      @derekbanas  8 років тому +1

      Thank you for the nice compliment :) I hope you find this tutorial useful.

  • @Earlosaur
    @Earlosaur 8 років тому

    The amount of material you produce is just... words can't describe how much I love you.

    • @derekbanas
      @derekbanas  8 років тому

      Thank you for the nice compliment :)

  • @ravikiranmandha4005
    @ravikiranmandha4005 6 років тому +3

    Thank you for another wonderful tutorial Derek. This is my second one after mySQL tutorial. We really appreciate your clear and no-nonsense way of teaching. A tutorial on AWK, GREP, SED would be helpful if you plan on doing one ever in the future.

    • @derekbanas
      @derekbanas  6 років тому

      Thank you very much :) I'll see what I can do about your requests

  • @lapinblanc6746
    @lapinblanc6746 8 років тому

    Great videos, Derek
    100 miles per hour, but short enough to watch in one sitting. Best tutorials on UA-cam :)

    • @derekbanas
      @derekbanas  8 років тому

      Thank you very much :) I'm glad you like them

  • @samsungyou2010
    @samsungyou2010 8 років тому +21

    Again.. This is the Best.. The BEST.. The best tutorial ever.
    Thanks a lot Derek . It really helped a lot....

  • @qodino
    @qodino 6 років тому +2

    This was the best Shell Scripting tutorial I’ve seen on UA-cam so far. Very well done. Thanks for sharing!

  • @jeff_mci_gaming6018
    @jeff_mci_gaming6018 6 років тому +2

    you got a lot done in 59minutes.. (precise and to the point) good stuff!

    • @derekbanas
      @derekbanas  6 років тому

      Thank you very much :) I'm happy I could be of help

  • @DomHarness
    @DomHarness 7 років тому

    Really like the speed of this! Nothing worse then a person getting distracted or ranting off about random things. Thanks for the awesome video!

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I do my best to not waste time

  • @dl8cy
    @dl8cy 8 років тому +486

    That was a whole semenster in one hour - great!

  • @tomiantenna7279
    @tomiantenna7279 5 років тому

    Wow, no Wadsworth Constant necessary for this video- it gets straight into the content without fuss! Love it! Thank you.

    • @derekbanas
      @derekbanas  5 років тому +1

      Thank you :) I don't like to waste peoples time

  • @witty437
    @witty437 2 роки тому

    Great pace. Great structure. You got me passed all the kinks I have with the peculiar syntax the shell employs before I remembered to be pissed off looping out about it! ie, ge, le etc and ++before and after++ and calling python functions inside - these kept me from being able to read it effectively. When II tried to learn elsewhere that was the kind of stuff I never got to with their early examples that used more conventional syntax where possible but that don't look like the scripts you find in the wild and read. The good ones anyway. Thank you, sir!

    • @derekbanas
      @derekbanas  2 роки тому +1

      Thank you for taking the time to tell me I helped :) I appreciate it!

  • @mikeseitz1381
    @mikeseitz1381 8 років тому

    Glad you made a shell scripting video. I tend to review your videos before I start coding, It helps me remember all the little things. This one is going to be very useful!

    • @derekbanas
      @derekbanas  8 років тому +2

      I'm very happy that I could help :)

  • @sedeanimugamez5418
    @sedeanimugamez5418 5 років тому

    the two best tutorials to learn by is the bash basics tutorial by joe collins and this one after, this one teaches scripting in bash and does offer some guidance into what the commands do, but not in the same detail as joe like the chmod commands could be explained with greater depth.Good vid.

  • @steveburrus9347
    @steveburrus9347 6 років тому +1

    Is thjere NO END to the ENORMOUS praise for Derek Banas on any particular tech nology that he wants to talk about?!

  • @richardlee5124
    @richardlee5124 3 роки тому

    This is the best shell scripting tutorial I have ever watched.

    • @derekbanas
      @derekbanas  3 роки тому

      Thank you for the nice compliment :) I did my best

  • @stanvanderplas5700
    @stanvanderplas5700 6 років тому

    man you are a life saver, couldnt bare any more slow not straight to the point vids explaining this

  • @jhonsen9842
    @jhonsen9842 7 місяців тому

    Great Tutorial Derek , Appreciate your effort that with in 60 mints you taught us shell scripting.

  • @WS-lv4kk
    @WS-lv4kk 7 років тому +2

    Around 28:30 I think you're supposed to use '\' for lexicographic string comparison, but you used '' which are redirection operators. It's a coincidence your code worked.

    • @GazbertUK
      @GazbertUK 4 роки тому

      Thanks for this comment, I've been trying to get this to work for about an hour you've come from the past to save my sanity. Who says time travel is dead!

  • @tainoroyal6585
    @tainoroyal6585 7 років тому

    Great tutorial. I love the pace of these. There's no waffle just pure gold.

  • @michaelwheadon1078
    @michaelwheadon1078 7 років тому

    I have never subscribed to a UA-cam channel before .....but will make an exception for Mr. Banas.

    • @derekbanas
      @derekbanas  7 років тому

      Thank you for the nice compliment :)

  • @RAJATTHEPAGAL
    @RAJATTHEPAGAL 7 років тому

    I must say you are really amazing at creating such short revision tutorial. They really do help to revise through everything quickly. I tried ur lisp and now this. :-)

    • @derekbanas
      @derekbanas  7 років тому

      Thank you for the nice compliment :)

  • @kaiergin3179
    @kaiergin3179 8 років тому

    Found out I needed to learn shell scripting today, Derek uploaded yesterday. Perfect timing and great video. Thanks so much!

    • @derekbanas
      @derekbanas  8 років тому

      You're welcome :) I'm glad I could help

  • @Zachucks
    @Zachucks 4 роки тому

    Watched this at double speed and took notes the entire time, got it all done in 30mins :)

  • @VaibhavGupta9
    @VaibhavGupta9 7 років тому

    I'll name my first-born after you Derek. You have saved my life more times than I can count!

    • @derekbanas
      @derekbanas  7 років тому

      I'm very happy to be of service :)

  • @sanchitkumar332
    @sanchitkumar332 7 років тому

    This lecture saved me lot of hours of work....Thanks derek.

    • @derekbanas
      @derekbanas  7 років тому

      I'm happy to be able to help :)

  • @ajoloteenvaso
    @ajoloteenvaso 6 років тому

    Omg!!!!!! this is the 4th video of your channel I watch today.

    • @derekbanas
      @derekbanas  6 років тому

      Thank you very much :) I'm happy you like them

  • @eoussama
    @eoussama 6 років тому

    Derek looks like the kind of guy that has over a hundred stackoverflow accounts, spending his days answering people's questions in great details.

    • @derekbanas
      @derekbanas  6 років тому

      It is a bit of an addiction :)

  • @serdar4websites129
    @serdar4websites129 6 років тому +1

    This tutorial helped me to overcome the fear against shell scripting. Thank you so much.

    • @derekbanas
      @derekbanas  6 років тому

      I'm happy I could help :)

  • @meyerjohannes
    @meyerjohannes 8 років тому

    You know its funny, every time I think of a new concept/language/whatever i want to learn, i check your channel first. Today it was shell scripting, and low and behold look what your most recent vid is!

    • @derekbanas
      @derekbanas  8 років тому

      Thank you for the compliment :) I'm very happy I could help

    • @meyerjohannes
      @meyerjohannes 8 років тому

      +Derek Banas I'm a little confused why you didn't explain that apt-get is a Linux package installer, not osx? vim (should) come already, but if not than apt-get won't work for osx.

  • @charlesclements4350
    @charlesclements4350 5 років тому

    I am so glad that you know what you ae doing, Mr. Show off. If I want to know some thing, I'll be sure not to ask you. Like the lyrics of the song "Dirty Laundry", "After all that has been said and done, they haven't told you a thing."

    • @derekbanas
      @derekbanas  5 років тому

      What would you have liked me to cover? I'm always happy to answer questions

    • @charlesclements4350
      @charlesclements4350 5 років тому

      I will ask you later.

  • @jimdaniels4595
    @jimdaniels4595 8 років тому +1

    This is exactly what I needed. I just started using elementary OS as my primary OS and with continuous updates and commands I wondered how to automate it. I come from C++ on Windows so it took me sometime. not sure I still have it correctly. I wondered why you used (( instead of (. Then [ replaced ((. But then we ran into [[ to be replaced by {. A lil confused here. Thanks for the video, Loved it.

  • @amarmundankar
    @amarmundankar 7 років тому

    Very useful tutorial and most of the basics have been covered. Really appreciate it !!!

  • @saeedbaig4249
    @saeedbaig4249 7 років тому

    8:15 - I believe you can also declare a constant with "readonly" (same effect as "declare -r").

  • @sanctipaprichio
    @sanctipaprichio 6 років тому

    hands down, this is how tutorials should looks like

    • @derekbanas
      @derekbanas  6 років тому

      Thank you for the compliment :)

  • @csisbw
    @csisbw 5 років тому

    I created a MD/PDF of your transcript and I'm happy to send it to anyone who messages :) with your permission that is!
    Thanks for the vid btw has helped a lot!

  • @arshidkhan9585
    @arshidkhan9585 3 роки тому

    Great tutorial. Derek knows art of fastest way of teaching. I had to stop a few times to learn about background material as Derek does not explain everything nor he should.
    It is up to you to fill in the gaps.

  • @anwarulbashirshuaib5673
    @anwarulbashirshuaib5673 4 роки тому

    28:42 if you replace elif with if, then the condition still evaluates to true. Maybe you need to put /< and /> in your conditions. Source: tldp.org/LDP/abs/html/comparison-ops.html

  • @bw2016
    @bw2016 Рік тому

    Amazing, thanks mate! I last played with these back during Sun Microsys days...good memories thanks

  • @euclid9492
    @euclid9492 4 роки тому

    Just want to say thanks for packing this information so tight. No one else does this because they don`t actually have that much to offer in a video so they stretch it out to 10x what it should be. I can see how it would be tempting to waste time and try to get more money with less work by filling in the videos with fluff, but I want to say thank you for not doing that!

    • @derekbanas
      @derekbanas  4 роки тому +1

      Thank you for the compliment :) I'm happy some people appreciate how much time I spend on editing

  • @LemonChieff
    @LemonChieff 6 років тому +3

    If you are going to use vim I recommend watching a tutorial and maybe printing a cheatsheet at the beginning just until you get used to it.
    Also the best place to use vim is in any computer science class to show off. (People think it's hard to use. And there is a barrier to entry but once you can use it it's just the best bash text editor there is imo. Emacs is nice too. )

  • @wsteve
    @wsteve 8 років тому

    This is awesome, you channel is the only serious one that i subscribed

  • @MichalKoziatek
    @MichalKoziatek 4 роки тому

    23:25 It's easy to mix up 'then' and 'than'. Those echoes should use the latter

  • @TanveerKhan-mb6bd
    @TanveerKhan-mb6bd 8 років тому

    Just simply Woooow...first thing i did after watching this vid is subs...ur vid brought lotta confidence in me..thanks for the awesome work...

    • @derekbanas
      @derekbanas  8 років тому

      Thank you for the nice compliment :)

  • @p.z.8355
    @p.z.8355 7 років тому +1

    Why dont you have "return" in the "getSum" function in 18:21 to exit the function ?
    When do I need to type "return" and when not ?

  • @complexham
    @complexham 8 років тому

    I feel like having unlimited power after watching this video, Thanks Derek!

    • @derekbanas
      @derekbanas  8 років тому

      Programming is Awesome! It is the first step to gaining super powers :)

  • @stone2654
    @stone2654 5 років тому +4

    Derek: "We're going to use Vim"
    Emacs User: *closes window*

    • @jasongifford6851
      @jasongifford6851 5 років тому

      EVIL User: Good to go, I've got best of both, with a vi layer for Emacs.

    • @stone2654
      @stone2654 5 років тому

      @@jasongifford6851 Get out of here with that nonsense!

  • @ThomasProsserZurich
    @ThomasProsserZurich 8 років тому +2

    Euler-Mascheroni Constant, golden ratio, base of natural log (Euler's number, sorry I'm Swiss, grew up with his face on our money...), pi and one of the Feigenbaum constants.

    • @derekbanas
      @derekbanas  8 років тому +1

      That's funny :) You got them

  • @kaleeswarankalimuthu758
    @kaleeswarankalimuthu758 7 років тому

    Awesome !!. I like the way you explained all in a single video .

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I'm glad it helped

  • @samtang6810
    @samtang6810 7 років тому

    It's great!喜欢您的声音和您的语速,还有必须的,通俗易懂,thanks very much!

  • @Dalboni
    @Dalboni 7 років тому

    This is AWESOME!
    We need more videos like this.

  • @RonaldModesitt
    @RonaldModesitt 8 років тому

    Do you ever sleep, or see your family? I don't believe I've ever seen anyone so busy. Thanks a lot for all the useful, interesting videos.

    • @derekbanas
      @derekbanas  8 років тому

      That's funny :) I actually sleep about 5 hours per day. You're very welcome.

  • @yamandanailalekkam614
    @yamandanailalekkam614 7 років тому

    i've understand all my semester in that hour thank u very much ps; like ur voice *.*

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I'm very happy that it helped

  • @ThePein124
    @ThePein124 6 років тому

    better than bought tutorials, thanks Derek

  • @nolicruz001
    @nolicruz001 4 роки тому

    @derek banas Thanks for your videos. They're a huge help.
    I spotted a correction @43:00. The second argument of slice is length, not index number.

  • @C0PED0GG
    @C0PED0GG 7 років тому

    Thanks for listening to your fans, an informative video Derek

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) Yes if enough people ask me for something I do my best to deliver

  • @tota_trader
    @tota_trader 2 роки тому

    Very informative. Thanks for putting in so much effort to make such videos

  • @jraphicqesign
    @jraphicqesign 8 років тому

    I liked this video very much, and I can not imaging that how possible you can type and speak in such a speedy way with minimum errors, it is like you do not need to think at all, the word just came out from your mouth and fingers!!!

    • @derekbanas
      @derekbanas  8 років тому

      Thank you very much :) I'm nothing special I have just had a lot of practice. I've made almost 800 videos.

    • @jraphicqesign
      @jraphicqesign 8 років тому

      you were a developer before?

    • @derekbanas
      @derekbanas  8 років тому

      I still work as a programmer

  • @TheSam1902
    @TheSam1902 7 років тому

    9:10 I'm a newbi in Vim (started 2 days ago yay) but a friend show me that you can simply type "yy" (double yank) to yank (copy) a whole line and then lowercase "p" to past it. Also, Ctrl+N is fking amazing

    • @derekbanas
      @derekbanas  7 років тому

      Thank you for sharing :)

  • @zen5878
    @zen5878 8 років тому

    Perfect timing for this awesome video! Thanks Derek!

  • @Cespasbeau
    @Cespasbeau 7 років тому

    Easy to follow and absorb the scripting content presented - Thank You!

  • @WillMcCKill
    @WillMcCKill 6 років тому

    Thank you for this. I took a whole lot of notes from this video (in the form of shell scripts)

    • @derekbanas
      @derekbanas  6 років тому +1

      I'm happy you liked it :)

  • @y4ip841
    @y4ip841 7 років тому

    This video is really helpful, thanks for making it. Covered all the things in 1 video!!

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I'm glad it helped

  • @teewuane
    @teewuane 5 років тому +6

    Every few minutes I look at the time line thinking I must have just covered 30 minutes. Nope, just covered 1 minute and 20 seconds.

    • @derekbanas
      @derekbanas  5 років тому

      I did my best to pack a lot in :)

  • @PJoriginal
    @PJoriginal 8 років тому

    Awesome Video..
    Makes kickstarting shell scripting a lot easier.
    Thanks Derek

    • @derekbanas
      @derekbanas  8 років тому

      Thank you :) I'm glad it helped

  • @babylongate
    @babylongate 4 роки тому +2

    5:51 where did he save the file as hello_world at the beginning?! I didn’t see when how he did that?

  • @sureshrajput5794
    @sureshrajput5794 6 років тому +1

    Hi Derek I love the way you cover any language in one hour session. This is the best tutorial on shell script available so for. Thank you :)

    • @derekbanas
      @derekbanas  6 років тому

      Thank you for the nice compliment :)

  • @sakthidbtechchennai2634
    @sakthidbtechchennai2634 4 роки тому

    SHELL SCRIPTS - www.sakthidbtechnology.com/blog_shell_script.php For more details kindly visit this blogs.

  • @s.baskaravishnu22
    @s.baskaravishnu22 6 років тому

    your videos are excellent. Your videos are very much useful to me, Many thanks for that. My warm regards to you.I very much congratulate you for providing cheat sheets

  • @parasherghimire6459
    @parasherghimire6459 7 років тому

    You are a life saver Derek.

    • @derekbanas
      @derekbanas  7 років тому

      Thank you :) I'm happy I can be of help

  • @saveliybaranov1665
    @saveliybaranov1665 6 років тому +2

    In order to close the overall if statement you're going to type fi. Because it's if backwards.
    Cool.

    • @chuckitaway466
      @chuckitaway466 5 років тому

      Now we just need to change HTML closing tags to LMTH

  • @cerenademe9433
    @cerenademe9433 7 років тому

    Thank goodness I took that Java class!............. Bash scripting on steroids. Thanks, Man

    • @derekbanas
      @derekbanas  7 років тому

      I'm very happy I could help :)

  • @FishKungfu
    @FishKungfu 8 років тому +1

    I just recently discovered your videos and they are great! I wonder if displaying which keys you are pressing might help, using something like screenkey. It may just add screen clutter, but might be worth evaluating. Thanks for your awesome videos!

    • @derekbanas
      @derekbanas  8 років тому +1

      Thank you for the input :) I looked at screenkey and I think it would be better if I just put up the keys when I issue a command. I will definitely do that from now on.

    • @FishKungfu
      @FishKungfu 8 років тому

      Oh cool! Yeah that makes sense. Thanks very much for considering trying that. :-)

    • @derekbanas
      @derekbanas  8 років тому +1

      No problem. I love getting input on how to improve the videos

  • @sayakutube
    @sayakutube 7 років тому

    You Blink, You Miss! I loved it, it was fun... :D Great Work.

  • @ArtyDrop
    @ArtyDrop 6 років тому

    Nice video and really helpful. You dont waste time, thank you

  • @AnmolKumar-qp3iv
    @AnmolKumar-qp3iv 8 років тому

    Perfect video for a student to learn. Man You deserve something. you can make an adfly account to earn more. we'll follow your links for no reason but to pay you some money indirectly.

    • @derekbanas
      @derekbanas  8 років тому

      Thank you very much :) I'll look into that. I'm actually pretty happy now. I just want to make enough to cover the books and other stuff and I make that now.

    • @AnmolKumar-qp3iv
      @AnmolKumar-qp3iv 8 років тому

      you won't believe me. i live in a world in which learning from video tutorial (or indirectly using computer) is not study. reading book is only priority for a student and parents always think one is successful only when he/she clears IIT or MBBS. these things are worthless for parents and my parents also don't support me. my only wish is to get out of here and live a real life and you are helping BIG THANKS

    • @derekbanas
      @derekbanas  8 років тому

      Thank you for taking the time to tell me :) I'm very happy that I can help. Making your parents happy is extremely important, but if your life goes as mine did around 20 or 21 you will be on your own and will have to live off of your skills. It is best to develop skills based around what you are passionate about and that can make you money. I wish you all the best

    • @AnmolKumar-qp3iv
      @AnmolKumar-qp3iv 8 років тому

      Thanks. You're a good person. thanks for the advice. have a nice day my friend

    • @derekbanas
      @derekbanas  8 років тому

      I'm very happy that I can help :)

  • @dianataietzel
    @dianataietzel 6 років тому

    Great tutorial!! I have learned exactly what i was looking for.thank you so much!

    • @derekbanas
      @derekbanas  6 років тому

      I'm happy I could help :)

  • @ryann6919
    @ryann6919 7 років тому +1

    VIM...so underrated but so great once you learn how to use it

  • @dayvid9908
    @dayvid9908 6 років тому

    Great video!
    Just so you know, at 53:24 you forget to put the "!" before "fav_nums" (i.e. ${!fav_nums[@]}) in order to print the indices.

  • @brunocalhiari976
    @brunocalhiari976 7 років тому +19

    man, how old are you and how old did you start learning to code?..I'm impressed with the amount of languages and techniques and tools you know

    • @derekbanas
      @derekbanas  7 років тому +36

      Thank you :) I'm 42 and I started programming when I was 10. I'm not that smart. Anyone can do this

    • @brunocalhiari976
      @brunocalhiari976 7 років тому +3

      I started coding with 18 and now I'm 22, really thank you for the reply, now I see I'm at the right pace knowing just a few languages :)

    • @HolyFosterConner
      @HolyFosterConner 7 років тому +10

      there are 12 year olds in china who can single handedly take down US govt web servers and you are still learning how to code. hope that gives you an estimate of how much catching up you need to be doing

    • @SitNSpinRecords
      @SitNSpinRecords 7 років тому +9

      follow the light don't try to catch up to the Chinese yet.. You'll burn out and quit.. You will start as a moron, then work up to a script kiddie, then a bottom feeder hacker, then the Russians, Indians, then Chinese 12 year olds.. Heheh. Just a thought...

    • @akhmadxfauzi
      @akhmadxfauzi 7 років тому +2

      I lol'd =))))
      But seriously man, don't compare yourself with that 12 years old kid.

  • @winx7918
    @winx7918 7 років тому

    Hi Derek, i am a bit confused with the increment example 12:44
    rand = 5
    let rand+=4
    echo "rand++ = $((rand++))" result 9 (i understand this one)
    but why echo "++rand = $((++rand))" result is 11, not 10?
    sorry i'm really new with programming

    • @winx7918
      @winx7918 7 років тому

      Got it, thank you very much :)

  • @kitgary
    @kitgary 5 років тому

    Great video! Shell scripting is one of the hardest skill to learn to be a good backend developer, I have been working as a software developer for many years and still can't grasp shell scripting, it's too difficult and even more difficult to work with Linux commands like awk, sed, grep.

    • @derekbanas
      @derekbanas  5 років тому

      Thank you :) I'm happy the video helped

  • @InsaneBastardGuy
    @InsaneBastardGuy 8 років тому +50

    Put BASH in parenthesis on video title, took me a while to find it ...

    • @monday6740
      @monday6740 7 років тому

      But the content makes up for it !

  • @victoreremita7980
    @victoreremita7980 8 років тому

    Hi there. Great tutorial. Question: from 34:30 to 36:10 what is going on?
    OIFS="$IFS" # Old input feild seperator equals ?
    IFS="," # input feild seperator equal a comma
    IFS="$OIFS" # input feild seperator equals original value?
    I don't get it. Once again great tutorial, it will take me a few go throughs to understand all of it.

    • @cybermythCS
      @cybermythCS 8 років тому +2

      IFS is a bash integrated (internal) variable that stores whitespace by default. He saves that value to OIFS (just a random variable) so he can set the IFS back to default value, when he's done with it. He then sets the IFS to ",", so he can separate input by the currently set value (comma). Then, as I mentioned above, he sets the original value of IFS back to IFS, by using the OIFS variable. Hope it's clear enough

    • @victoreremita7980
      @victoreremita7980 8 років тому

      Cheers!

    • @derekbanas
      @derekbanas  8 років тому

      Thank you for helping :)

  • @johnsonmaurice98
    @johnsonmaurice98 5 років тому

    Thanks Derek.
    This was super useful and I'm a new fan MyFriend !!!

  • @Dragoon77
    @Dragoon77 4 роки тому

    Just what I needed, thanks, you're amazing!

    • @derekbanas
      @derekbanas  4 роки тому +1

      Thank you very much :) Happy I could help

  • @ThePomelo09
    @ThePomelo09 8 років тому

    you are the best!! ty from Argentina

    • @derekbanas
      @derekbanas  8 років тому

      Hello Argentina :) You're very welcome

  • @technojunkie213
    @technojunkie213 7 років тому

    You are a lifesaver. Subscribed!!

  • @moodswings353
    @moodswings353 8 років тому

    Thank you mister Banas. All the best to you.

    • @derekbanas
      @derekbanas  8 років тому +1

      You're very welcome :)

  • @johnnyblack612
    @johnnyblack612 6 років тому +1

    Hello, I am not an English native speaker and I am really having troubles trying to understand this part 8:46, somebody knows why he uses this character $ ?? And why is he using double brackets?

    • @darkwingduck42
      @darkwingduck42 6 років тому

      The dollar sign resolves a variable to its value

  • @sharanabasavapatil133
    @sharanabasavapatil133 5 років тому

    very good tutorial, short and sweet, thank you!

    • @derekbanas
      @derekbanas  5 років тому

      Thank you very much 😁

  • @steffen5121
    @steffen5121 7 років тому

    53:00
    1 - Pi
    2 - Eulers Number
    3 - ? (I feel like I've seen this one before)
    4 - ? (same)
    5 - Golden Ratio

    • @steffen5121
      @steffen5121 7 років тому

      edit:
      3 - the Euler-Macheroni-Constant
      4 - the Feigenbaum-Constant