Basic Linux Command Example: 


Get help on Linux let Command.


   Linux let command is use to evaluate arithmetic expressions on Linux system.  The Linux let command is one of bash shell built in command.  The command example below show how to get let command manual or help on Linux let command using shell command, this help show information on how to use the Linux let command, the let command options and the arguments that can be use with Linux let command.


Get Linux let command help


  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for let command using the manpage format.

let linux command

[linux@fedora11 ~]$ help -m let


    let - Evaluate arithmetic expressions.



    let arg [arg ...]



    Evaluate arithmetic expressions.


    Evaluate each ARG as an arithmetic expression.  Evaluation is done in

    fixed-width integers with no check for overflow, though division by 0

    is trapped and flagged as an error.  The following list of operators is

    grouped into levels of equal-precedence operators.  The levels are listed

    in order of decreasing precedence.


        id++, id--      variable post-increment, post-decrement

        ++id, --id      variable pre-increment, pre-decrement

        -, +            unary minus, plus

        !, ~            logical and bitwise negation

        **              exponentiation

        *, /, %         multiplication, division, remainder

        +, -            addition, subtraction

        <<, >>          left and right bitwise shifts

        <=, >=, <, >    comparison

        ==, !=          equality, inequality

        &               bitwise AND

        ^               bitwise XOR

        |               bitwise OR

        &&              logical AND

        ||              logical OR

        expr ? expr : expr

                        conditional operator

        =, *=, /=, %=,

        +=, -=, <<=, >>=,

        &=, ^=, |=      assignment


    Shell variables are allowed as operands.  The name of the variable

    is replaced by its value (coerced to a fixed-width integer) within

    an expression.  The variable need not have its integer attribute

    turned on to be used in an expression.


    Operators are evaluated in order of precedence.  Sub-expressions in

    parentheses are evaluated first and may override the precedence

    rules above.


    Exit Status:

    If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise..






    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


[linux@fedora11 ~]$


Keywords: let, let command, linux let command, let linux command, linux command let, let command manual, let manual, let help, help let, command let help, help let command