About 495,000 results
Open links in new tab
  1. Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange

    Jan 16, 2014 · Shell scripting: -z and -n options with if Ask Question Asked 11 years, 10 months ago Modified 10 months ago

  2. Using the not equal operator for string comparison

    yes, and as I said, you're free to code your project the way you like. But, next to stating your preference to using braces, you linked to an article titled "Why You Should Put Braces around Your Variables …

  3. How can I pass a command line argument into a shell script? - Unix ...

    Feb 10, 2012 · The shell command and any arguments to that command appear as numbered shell variables: $0 has the string value of the command itself, something like script, ./script, …

  4. what is >> symbol and >& in unix/Linux? [duplicate]

    See What is the difference between > and >> (especially as it relates to use with the cat program)?, What does “3>&1 1>&2 2>&3” do in a script? and of course, your shell's manual. (There are some …

  5. What does -f mean in an if statement in a bash script?

    Jul 5, 2018 · The relevant man page to check for this is that of the shell itself, bash, because -f is functionality that the shell provides, it's a bash built-in. On my system (CentOS 7), the fine man page …

  6. scripting - Unix & Linux Stack Exchange

    I can read the numbers and operation in with: echo "First number please" read num1 echo "Second number please" read num2 echo "Operation?" read op but then all my attempts to add the numbers …

  7. What is the meaning of read -r? - Unix & Linux Stack Exchange

    Mar 27, 2015 · There is no stand-alone read command: instead, it is a shell built-in, and as such is documented in the man page for bash: read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [-N …

  8. What is the meaning of $? in a shell script? - Unix & Linux Stack …

    Feb 20, 2011 · When going through one shell script, I saw the term "$?". What is the significance of this term?

  9. scripting - How to use and/or conditional in shell script - Unix ...

    Jun 19, 2015 · Explore related questions shell-script scripting ksh See similar questions with these tags.

  10. Starting with bash: -lt and -gt arguments - Unix & Linux Stack Exchange

    You can find the definition of -lt and -gt in the documentation of the test command (man test), or in the documentation of bash since test is a built-in command in bash (like in most other shells). -lt and -gt …