Top "Shell" questions

The term 'shell' refers to a general class of text-based interactive command interpreters most often associated with the Unix & Linux operating systems.

Sending a mail from a linux shell script

I want to send an email from a Linux Shell script. What is the standard command to do this and …

linux email shell sendmail
What is the purpose of "&&" in a shell command?

As far as I know, using & after the command is for running it in the background. Example of & …

bash shell command-line syntax
"unary operator expected" error in Bash if condition

I've been trying to figure out whats wrong with this but just can't figure it out.. This is the part …

bash shell
Run a string as a command within a Bash script

I have a Bash script that builds a string to run as a command Script: #! /bin/bash matchdir="/home/joao/…

bash shell command-line-arguments
How to split one string into multiple strings separated by at least one space in bash shell?

I have a string containing many words with at least one space between each two. How can I split the …

bash shell string split
Defining a variable with or without export

What is export for? What is the difference between: export name=value and name=value

linux bash shell
How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"

$ adb --help -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) $ adb devices List of devices attached emulator-5554 device 7…

android shell cmd adb android-debug
How to run Unix shell script from Java code?

It is quite simple to run a Unix command from Java. Runtime.getRuntime().exec(myCommand); But is it possible to …

java unix shell
How to gzip all files in all sub-directories into one compressed file in bash

Possible Duplicate: gzipping up a set of directories and creating a tar compressed file This post describes how to gzip …

linux bash shell gzip
Is there a "goto" statement in bash?

Is there a "goto" statement in bash ? I know It is considered bad practice, but I need specifically "goto".

linux bash shell goto