About 1,050,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 encourages the …

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

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

  5. sh - How to use source command in shell script? - Super User

    source is a shell built-in command. The which command looks for binaries on the PATH, like in /usr/bin, /bin, /sbin, etc. but you won't find any built-in commands in a separate binary. Also, having the …

  6. Adding two numbers using expr - Unix & Linux Stack Exchange

    I'm learning Shell scripting for a diploma in IT I'm currently doing. I'm trying to write a small script that adds two numbers as shown as in one of the tutorials we were given. echo "Enter two nu...

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

  8. scripting - format the shell script output as a table - Unix & Linux ...

    Feb 17, 2020 · I am running a script in a loop which creates some data as per some logic and then displays output in some combination but the output I am getting is in new line Roll number : 187437...

  9. What does the operator `-gt` in shell scripts mean? [duplicate]

    May 29, 2018 · What does the operator `-gt` in shell scripts mean? [duplicate] Ask Question Asked 7 years, 6 months ago Modified 7 years, 6 months ago

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

    Jun 19, 2015 · Interestingly, the shell will even do the twiddle thing ~ and << left and >> right SHIFTs. And so if a is true OR b^100 is true, the expansion evals to 1, matches the comparison -eq [ test ] …