Question
Which of the following is the syntax for an `if`
statement checking if a variable `NUM` is numerically equal to 5?Solution
`if [ $NUM -eq 5 ]; then ... fi`
Star schema consists of:
Which construct allows embedding a block of text in shell scripts as input?
Which command is used to search for a string inside a file?
Which symbol is used to make a script executable in Linux?
In Bash, which syntax is used for arithmetic expansion?
How can you make a shell script executable?
Which command is used to display the contents of a file in Linux?
Which command is used to make a shell script executable?
Which statement correctly defines a variable in shell scripting?
If a program needs to read data from a file, which system call would it typically use?