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.

'\r': command not found - .bashrc / .bash_profile

I have windows, using Cygwin, trying to set JAVA_HOME permanently through my .bashrc file. .bashrc: export PATH="$JAVA_HOME/…

bash shell cygwin newline
Counter increment in Bash loop not working

I have the following simple script where I am running a loop and want to maintain a COUNTER. I am …

linux bash shell scripting counter
Subtract two variables in Bash

I have the script below to subtract the counts of files between two directories but the COUNT= expression does not …

bash shell unix
Can I export a variable to the environment from a bash script without sourcing it?

Suppose that I have this script export.bash: #! /usr/bin/env bash export VAR="HELLO, VARIABLE" When I execute the …

bash shell unix environment-variables
How can I do division with variables in a Linux shell?

When I run commands in my shell as below, it returns an expr: non-integer argument error. Can someone please explain …

linux bash shell variables division
Writing outputs to log file and console

In Unix shell, I have a env file (env file defines the parameters required for running the user script like …

bash shell redirect logging
How do I redirect output to a variable in shell?

I have a script like that genhash --use-ssl -s $IP -p 443 --url $URL | grep MD5 | grep -c $MD5 I want …

bash shell
How to run a python script from IDLE interactive shell?

How do I run a python script from within the IDLE interactive shell? The following throws an error: >>&…

python shell command-line python-idle
adb shell su works but adb root does not

I rooted my unlocked Galaxy S3 (SGH-T999) Now, I'm trying to run adb root from Windows Command Prompt, however, I'm …

android shell adb root
Block Comments in a Shell Script

Is there a simple way to comment out a block of code in a shell script?

shell