Bash in 100 Seconds
Mô tả
Bash is the command line shell that you encounter when you open the terminal on most Unix operating systems, like MacOS and Linux. Learn how to create your own bash scripts to automate tasks on your computer. #linux #compsci #100SecondsOfCode 🔗 Resources Bash Reference https://www.gnu.org/software/bash/man... Unix Shell History https://developer.ibm.com/tutorials/l...
Danh sách bài giảng (1 bài)
Bài 1: Bash in 100 Seconds
Video bài giảngBài kiểm tra Quizzes (0)
Chưa mở khóaĐánh giá từ học viên
Nhận xét và trải nghiệm thực tế từ các học viên đã đăng ký tham gia khóa học này.
Dựa trên 10 lượt đánh giá từ học viên
Đăng nhập để đánh giá khóa học
Bạn cần đăng nhập và tham gia khóa học để có thể gửi đánh giá và nhận xét.
Tất cả đánh giá 10
So, the main take-away from this video is that the operating system is a squishy snail inside a shell?
Fun fact: You can use $0 instead of $SHELL to get the actual name of the current shell, not just the path
That "bourne" -> "born again" evolution taught me how old the tradition of nerdy play on words is for programmers, even very important programmers.
My favourite one is "Nero Burning ROM", it's just so perfectly layered.
Some thoughts:
EDIT: Please stop telling me about `#!/bin/sh`. This video is specifically about bash and so is this comment. I am aware that posix sh... exists. If you want to write POSIX compliant scripts, use sh. If you want to write modern scripts, use BASH. Also: even if you use sh instead of bash, you may still be writing bash. The best way to test for that would be shellcheck.
Oh and `/bin/sh` is not specified ny posix either, so you'll probably still want to use `#!/usr/bin/env sh`.
- Please do not use `#!/bin/bash` or `#!/usr/bin/bash` as your shebeng. Instead use `#!/usr/bin/env bash`. This way, bash can be installed pretty much anywhere and it will still work.
- Please always put double qoutes around variables unless you specifically need them unqouted (which you do when loop o
That was fast. Now to learn all the branching, variables, pattern matching and syntax intricacies it will take only a 100 weeks. Full-time.