ENع
الدرس 15 · Networking, scripting and internals

Bash scripting

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

A Bash script is a text file of commands that Bash runs top to bottom, so a job you type every day can run itself. Follow one seven-line script, count.sh, as it runs: the kernel reads the shebang and starts bash, a variable is made, a glob turns *.txt into a list of file names, a for loop walks that list while arithmetic counts, echo prints each result, and the script ends with an exit status.

11 دقيقة9 خطوات5 أسئلةAdvanced
شكل 15 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.