约 2,600,000 个结果
在新选项卡中打开链接
  1. bash - Shell equality operators (=, ==, -eq) - Stack Overflow

    It depends on the Test Construct around the operator. Your options are double parentheses, double brackets, single brackets, or test. If you use ((…)), you are testing arithmetic equality …

  2. bash - What does <<< mean? - Unix & Linux Stack Exchange

    Take a look at the Bash man page. This notation is part of what's called a here documents & here strings. It allows you the ability to generate multi-line data input as one continuous string. The …

  3. An "and" operator for an "if" statement in Bash - Stack Overflow

    An "and" operator for an "if" statement in Bash Asked 12 years, 10 months ago Modified 1 year, 3 months ago Viewed 984k times

  4. How to compare strings in Bash - Stack Overflow

    2010年2月10日 · How do I compare a variable to a string (and do something if they match)?

  5. shell - Difference between sh and Bash - Stack Overflow

    When writing shell programs, we often use /bin/sh and /bin/bash. I usually use bash, but I don't know what's the difference between them. What's the main difference between Bash and sh? …

  6. What do the -n and -a options do in a bash if statement?

    The switches -a and -n are not strictly part of a bash if statement in that the if command does not process these switches. What are primaries? I call them "switches", but the bash …

  7. How do I iterate over a range of numbers defined by variables in …

    2008年10月4日 · Related discusions: bash for loop: a range of numbers and unix.stackexchange.com - In bash, is it possible to use an integer variable in the loop control …

  8. How to increment a variable in bash? - Ask Ubuntu

    2017年1月30日 · #!/bin/bash # To focus exclusively on the performance of each type of increment # statement, we should exclude bash performing while loops from the # performance measure.

  9. bash - How to call one shell script from another shell script?

    I have two shell scripts, a.sh and b.sh. How can I call b.sh from within the shell script a.sh?

  10. How can I assign a heredoc value to a variable in Bash?

    This is also superior to the accepted answer, because it can be modified to support POSIX sh in addition to bash (a read loop in the function, to avoid the -d '' bashism necessary to preserve …