Write a test expression that returns a value indicating


Assignment

Steps for Script

Do not use if statements in any of the steps below

1. On a single line, create the following variables with the values given.

o Variable a with the value 5
o Variable b with the value 3 On another single command line, create the following variables with the values given.
o Variable si with the value "foo"
o Variable s2 with the value "foo"
o Variable s3 with the value "bar" Print all variables and their values to the terminal.

2. Write a test expression that returns a value indicating true or false when testing whether a is equal to b. Echo the results of this test to the terminal.

3. Write a test expression that returns a value indicating true or false when testing whether a is less than b. Echo the results of this test to the terminal.

4. Write a test expression that returns a value indicating true or false when testing whether a plus b is greater than 9. Echo the results of this test to the terminal.

5. Write a test expression that returns a value indicating true or false when testing whether sl is equal to s2. Echo the results of this test to the terminal.

6. Write a test expression that returns a value indicating true or false when testing whether si is not equal to s3. Echo the results of this test to the terminal.

7. Write a test expression that returns a value indicating true or false when testing whether si has a length greater than 0. Echo the results of this test to the terminal.

8. Do the following

o Copy the directory din]. from -anubhaw/course_files/it244_files
o Copy the file empty. txt from -anubhaw/course_files/it244_files
o Run a single command to show the permissions on the contents of your hw10 directory

9. Write a test expression that returns a value indicating true or false when testing whether dirt is a directory. Echo the results of this test to the terminal.

10. Write one test expression that returns a value indicating true or false when testing whether empty. txt is readable and is writeable. Echo the results of this test to the terminal.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a test expression that returns a value indicating
Reference No:- TGS02750052

Expected delivery within 24 Hours