13,420
edits
Changes
→Additional Loop Statements
This creates a problem if you want to perform math operations. In order to convert values stored as text in the shell to binary numbers, you need to use a command in order to accomplish that task.
The older method is to use the '''expr''' command. For example Example:
<pre style="font-weight:bold;font-family:courier;">
</pre>
A short-cut to convert text values to binary numbers is to contain within a double set of round brackets: '''(( ))'''
Example: