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

    Jan 16, 2014 · Shell scripting: -z and -n options with if Ask Question Asked 11 years, 9 months ago Modified 9 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 -f mean in an if statement in a bash script?

    Jul 5, 2018 · -1 This answer is very misleading, following on from the question’s misleading title. -f has nothing to do with if; it is an option for the [ command, which just happens to be called …

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

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

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

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

  7. shell script - What does -s and - Unix & Linux Stack Exchange

    Mar 31, 2017 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

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

  9. How can I pass a command line argument into a shell script?

    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, …

  10. 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, 2 months ago Modified 11 months ago