About 1,080,000 results
Open links in new tab
  1. What is the meaning of $? in a shell script? - Unix & Linux Stack …

    Feb 20, 2011 · This latter usage is faster, does not contaminate the shell's variable namespace with what amounts to temp variables, can often be a lot more readable for humans and …

  2. Shell scripting: -z and -n options with if - Unix & Linux Stack …

    Jan 16, 2014 · You can find a very nice reference for bash's [ aka test builtin's operators here, or by running help test in a bash shell or info bash test or info bash '[' from any shell¹. If you are …

  3. Difference between ${} and $() in a shell script - Super User

    Difference between $ {} and $ () in a shell script Ask Question Asked 10 years, 5 months ago Modified 10 months ago

  4. 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 …

  5. What is $* and $# in Linux? - Super User

    What do the following environment variables in Linux mean? What is $* (dollar sign followed by an asterisk)? What is $# (dollar sign next to a hash mark/number sign/octothorpe/pound sign)?

  6. How can I assign the output of a command to a shell variable?

    A shell assignment is a single word, with no space after the equal sign. So what you wrote assigns an empty value to thefile; furthermore, since the assignment is grouped with a …

  7. shell script - How to execute .sh files on Windows? - Super User

    0 To run the shell script from the windows. First use the command : dos2unix then you can use your normal command : sh runide.sh This will work out.

  8. shell script - How to iterate a CSV file in bash? - Unix & Linux Stack ...

    Nov 28, 2019 · First of all, avoid doing text-parsing with shell loops. It is hard to do, easy to get wrong and very hard to read. And slow. Very, very, slow. Instead, use something like awk …

  9. In a bash script, using the conditional "or" in an "if" statement

    In a bash script, using the conditional "or" in an "if" statement Ask Question Asked 13 years, 3 months ago Modified 1 year ago

  10. shell script - How do I trim leading and trailing whitespace from …

    I would like to remove all leading and trailing spaces and tabs from each line in an output. Is there a simple tool like trim I could pipe my output into? Example file: test space at back test...