Shell Scripting اسئلة واجوبة المقابلات
سؤال 11. How do you use the `for` loop in a shell script?
The `for` loop is used to iterate over a sequence of values or elements.
هل هذا مفيد؟
اضف تعليقا
عرض التعليقات
سؤال 12. Explain the use of the `awk` command in shell scripting.
The `awk` command is used for pattern scanning and processing in a text file.
هل هذا مفيد؟
اضف تعليقا
عرض التعليقات
سؤال 13. What is process substitution in shell scripting?
Process substitution allows a process's input or output to be referred to using a filename.
هل هذا مفيد؟
اضف تعليقا
عرض التعليقات
سؤال 14. How do you redirect both standard output and standard error to the same file?
You can use `command > file 2>&1` to redirect both stdout and stderr to the same file.
هل هذا مفيد؟
اضف تعليقا
عرض التعليقات
سؤال 15. Explain the purpose of the `case` statement in a shell script.
The `case` statement is used for multiple-choice decision-making in a shell script.
هل هذا مفيد؟
اضف تعليقا
عرض التعليقات
الاكثر فائدة حسب تقييم المستخدمين: