تبلیغات

آشنایی با اسکریپت نویسی بش

دسته بندی ها: آموزش لینوکس (Linux) ، آموزش های Skillshare

در این دوره با فرمت یونیک و فایل اتچ شده در پروژه کلاس و notes.org آشنا می شوید. این تنها فایلی است که نیاز دارید. شامل اطلاعاتی است که شما نیاز دارید. اگر با emacs آشنایی ندارید در اینجا با آشنا می شوید و دلیل یادگیری emacs  و نصب Org Mode را فرا خواهید گرفت.

در این دوره با مباحث زیر آشنا می شوید:

  • معرفی دوره
  • درباره notes.org
  • کاراکتر خاص
  • متغیر بش
  • توابع
  • بازگشت توابع
  • دستور Declare statement
  • If test بر روی فایل
  • For loops
  • Break & Continue
  • و غیره
آیا این نوشته را دوست داشتید؟
Skillshare Introduction to Bash Scripting Author:Eric Simard Duration:1:04:42 Level:Beginner

I deliver this class in a unique format. Look at the attached file in Class Project, you will see a notes.org
This is the only file you need. It contains all the information you need and examples are integrated into it.
If you are new to emacs and org mode head over and watch Why learn emacs and Install Org Mode

Video lessons goes as follow:

  1. Quick introduction
  2. About notes.org
    Why did I choose to deliver this class with org
  3. Special character
    We cover Comments, command separator and the difference between single and double quote.
  4. Bash variable
    How do we declare and use variable
  5. Functions
    How do we declare and call functions. Including passing arguments to functions.
  6. Functions return
    What can be return from a function.
  7. Declare statement
    We look into the details of the declare statement.
  8. If statement
    Here we first look at the if statement, its structure and some example.
  9. If test on file
    Now we look at using the if statement to make some test on files, Does the file exists? Is it a directory? We quickly look through the full list of test that can be performed on files.
    It help to follow this video if you have a clear understanding of what files are in Linux.
  10. Next we look at more common way of doing test, ( < > <= ... ) but also how the test works with different types of brackets.
  11. For loops
  12. While and Until loops
  13. Input redirection
    A loop can be control by redirecting the input from a file or another process.
  14. Break & Continue
    Here we have a look at the break and continue and their different behavior depending on the loop.
  15. Command line arguments.
    first look at parsing command line argument to your scripts.
  16. How to implement Linux Style arguments in your scripts
    There are 3 common ways of doing so:
    1. Space separated
    2. = separated
    3. with getopts ( 2 Parts video, usage & errors)
  17. How to create menus with SELECT builtin.
  18. The Project

پیشنهاد فرادرس