About 1,080,000 results
Open links in new tab
  1. 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

  2. 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?

  3. What does $# mean in shell? - Unix & Linux Stack Exchange

    What does $# mean in shell? I have code such as if [ $# -eq 0 ] then I want to understand what $# means, but Google search is very bad for searching these kinds of things.

  4. Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange

    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 using a …

  5. Multiline shell script comments - how does this work?

    Multiline shell script comments - how does this work? Ask Question Asked 13 years, 7 months ago Modified 7 years, 5 months ago

  6. 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.

  7. Precedence of the shell logical operators - Unix & Linux Stack Exchange

    This has confused me a lot in trying to write shell script pipelines with different logic based on some test (e.g. exiting if a file doesn't exist vs continuing the pipeline).

  8. Run Bash script in background and exit terminal - Super User

    Apr 11, 2017 · Is it possible to launch a command or Bash script exit terminal and NOT interrupt command? My solution was to run cron at a specific time of day, but I'm sure there is something easier.

  9. shell script - How can I display list of files in a directory? - Unix ...

    Jul 19, 2020 · A note on the capitalisation of shell variables. Shell variables should be lowercase. There is a standard for this. And you will get unexpected errors from time to time, if you make them capitals.

  10. bash - How to get execution time of a script effectively? - Unix ...

    Jan 26, 2017 · I would like to display the completion time of a script. What I currently do is - #!/bin/bash date ## echo the date at start # the script contents date ## echo the date at end This just show's...