Changes

Jump to: navigation, search

Tutorial10: Shell Scripting - Part 1

370 bytes removed, 10:59, 10 March 2021
Using Control Flow Statements in Shell Scripts
You CANNOT use the <span style="font-family:courier;font-weight:bold;">&lt;</span> or <span style="font-family:courier;font-weight:bold;">&gt;</span> symbols when using the test command since these are redirection symbols. Instead, you need to use options when performing numerical comparisons.
Refer to the table below for test options and their purposes.
 There are <ubr>other</u> comparison options that can be used with the test command such as testing to see if a regular file or directory pathname exists, or if the regular file pathname is –non-empty. Refer to diagrams to the right involving some of the options used with the '''test''' command. Refer to the test man pages for a full list of options for the test command.
'''Logic Statements'''
13,420
edits

Navigation menu