Gang Of Coders
Home
About Us
Contact Us
All Shell Solutions on Gang of Coders
Total of 1074 Shell Solutions
How do I execute a program or call a system command?
Python
Shell
Terminal
Subprocess
Command
How can I check if a directory exists in a Bash shell script?
Bash
Shell
Unix
Posix
How to use SSH to run a local shell script on a remote machine?
Shell
Ssh
Sysadmin
Remote Execution
YYYY-MM-DD format date in shell script
Bash
Shell
Date
Strftime
Is there a "standard" format for command line/shell help text?
Shell
Command Line
Command Line-Arguments
Display curl output in readable JSON format in Unix shell script
Json
Shell
Curl
Which shell I am using in mac
Bash
Macos
Shell
Unix
Zsh
sh command: exec 2>&1
Bash
Shell
Exec
Running java with JAVA_OPTS env variable has no effect
Java
Shell
Remote Debugging
Jvm Arguments
How to kill all subprocesses of shell?
Bash
Shell
Process
Fork
Kill
Print the last line of a file, from the CLI
Linux
Shell
Awk
Command Line-Interface
How to programmatically determine the current checked out Git branch
Git
Bash
Shell
Close Terminal window from within shell script (Unix)?
Macos
Shell
Unix
Command
I get 'Command Not Found' when I try to run Android Emulator on Mac OS X
Android
Macos
Shell
Emulation
How to write a bash script to set global environment variable?
Bash
Shell
Environment Variables
command not found when using sudo ulimit
Linux
Shell
Ubuntu 12.04
How to diff directories over ssh
Linux
Shell
How to pass command line arguments to a shell alias?
Shell
Alias
Delete newline in Vim
Unix
Vim
Shell
Ssh
Vi
How can I list all vhosts in nginx
Linux
Shell
Nginx
documenting shell scripts' parameters
Linux
Unix
Shell
What is an easy way to do a sorted diff between two files?
Unix
Shell
How can I pass a file argument to my bash script using a Terminal command in Linux?
Linux
Bash
Shell
Command Line
Terminal
How do I get just real time value from 'time' command?
Bash
Scripting
Shell
Convert absolute path into relative path given a current directory using Bash
Bash
Shell
Path
Relative Path
Absolute Path
Use GNU find to show only the leaf directories
Bash
Shell
Find
Gnu
How to get PID of current rake task?
Ruby
Shell
Rake
How to store directory files listing into an array?
Bash
Shell
Grab the filename in Unix out of full path
Bash
Shell
Unix
Ksh
Removing part of a filename for multiple files on Linux
Linux
Bash
Shell
Is it possible to run JavaScript files from the command line?
Javascript
Shell
Console
Do manual build fail in Jenkins using shell script
Shell
Jenkins
Continuous Integration
Generating a SHA-256 hash from the Linux command line
Linux
Shell
Sha256
How to perform grep operation on all files in a directory?
Linux
Shell
Grep
Remember GPG password when signing git commits
Git
Shell
Gnupg
Calculate size of files in shell
Linux
Shell
Capturing stdout when calling Runtime.exec
Java
Shell
Runtime
Forking / Multi-Threaded Processes | Bash
Bash
Shell
Fork
How do I list one filename per output line in Linux?
Linux
Shell
Ls
How can I repeat a character in Bash?
Bash
Shell
Echo
How to kill all processes matching a name?
Shell
Command Line
Kill
How to pass parameters to a Bash script?
Linux
Bash
Shell
Use sed to replace all backslashes with forward slashes
Bash
Shell
Sed
How would you launch a browser from the a node.js command line script
Shell
Command Line
node.js
How to run a script as root in Jenkins?
Shell
Hudson
Jenkins
Root
Getting the last argument passed to a shell script
Shell
Arguments
"unary operator expected" error in Bash if condition
Bash
Shell
Pass command line arguments via sbatch
Bash
Shell
Unix
Slurm
Dockerfile CMD instruction will exit the container just after running it
Bash
Shell
Docker
Sh
Dockerfile
The return code from 'grep' is not as expected on Linux
Linux
Bash
Shell
Grep
Run multiple curl commands in parallel
Bash
Shell
Curl
Passing arguments by reference
Bash
Shell
Scripting
Pass by-Reference
How to count differences between two files on linux?
Shell
Count
Diff
How to programmatically determine whether the Git checkout is a tag and if so, what is the tag name
Git
Bash
Shell
UNIX, get environment variable
Unix
Shell
Environment
Echo
Sort & uniq in Linux shell
Linux
Shell
Sorting
Uniq
Can I run 'su' in the middle of a bash script?
Bash
Shell
Differences between declare, typeset and local variable in Bash
Bash
Shell
Variables
Scope
Declare
Inline if shell script
Linux
Shell
Scripting
Sh
Activating a VirtualEnv using a shell script doesn't seem to work
Shell
Terminal
Virtualenv
How to split a list by comma not space
Linux
Bash
Shell
Csv
Split
Is it possible to get the function name in function body?
Bash
Shell
Bash: wait with timeout
Linux
Bash
Shell
Timeout
Waitpid
How can I detect if my shell script is running through a pipe?
Bash
Shell
Pipe
What is the $? (dollar question mark) variable in shell scripting?
Shell
Scripting
What is the difference between $(command) and `command` in shell programming?
Bash
Shell
Ksh
Sh
Array of arrays in bash
Arrays
Bash
Shell
How to perform a for-each loop over all the files under a specified path?
Linux
Bash
Shell
Windows shortcut to run a Git Bash script
Windows
Shell
Desktop
Msysgit
Git Bash
How to run a series of vim commands from command prompt
Shell
Vim
Command Prompt
List file using ls command in Linux with full path
Linux
Bash
Shell
Command Line
Lua
How do I use a regex in a shell script?
Regex
Bash
Shell
Block Comments in a Shell Script
Shell
How to split one string into multiple strings separated by at least one space in bash shell?
Bash
Shell
String
Split
How to define array in multiple lines in Shell
Macos
Shell
Best way to choose a random file from a directory in a shell script
Bash
File
Shell
Random
How to get local application data folder in Java?
Java
Windows
Shell
Commenting out a set of lines in a shell script
Unix
Shell
Comments
Editing
What does "< <(command args)" mean in the shell?
Bash
Shell
Built In
What is the reason for the weird syntax of the "case" statement in a bash/zsh script?
Bash
Shell
Case
Zsh
How can I declare and use Boolean variables in a shell script?
Bash
Shell
Scripting
Boolean
Sh
Why do people write #!/usr/bin/env python on the first line of a Python script?
Python
Shell
Shebang
Running shell command and capturing the output
Python
Shell
Subprocess
Check if a string matches a regex in Bash script
Regex
Bash
Shell
Scripting
find -name "*.xyz" -o -name "*.abc" -exec to Execute on all found files, not just the last suffix specified
Linux
Bash
Shell
Scripting
What is the proper way to detect shell exit code when errexit option is set?
Bash
Shell
Is there a way to make bash job control quiet?
Bash
Shell
Unix
Parallel Processing
Time condition loop in shell
Shell
How to print UTF-8 encoded text to the console in Python < 3?
Python
Shell
Encoding
Utf 8
Ascii
Why doesn't my terminal output unicode characters properly?
Bash
Shell
Command Line
Console
Terminal
Concatenating variables in Bash
Bash
Shell
String Concatenation
Get the name of the caller script in bash script
Bash
Shell
Incrementing a variable inside a Bash loop
Bash
Shell
Loops
execute shell command from android
Java
Android
Xml
Shell
Android 4.4-Kitkat
How to find whether or not a variable is empty in Bash
Bash
Shell
Is Empty
ZSH Agnoster Theme showing machine name
Shell
Ubuntu
Zsh
Digital Ocean
Oh My-Zsh
CURL escape single quote
Bash
Shell
Curl
Elasticsearch
How to set font color for STDOUT and STDERR
Unix
Shell
Terminal
How to convert string to integer in UNIX
Linux
Shell
Unix
Interactive
Permission denied at hdfs
Shell
Security
Hadoop
Permissions
Hdfs
Get last dirname/filename in a file path argument in Bash
Linux
Bash
Shell
Svn
How can I parse a YAML file from a Linux shell script?
Shell
Yaml
What does $@ mean in a shell script?
Linux
Bash
Shell
Unix
Sh
How can I ssh directly to a particular directory?
Bash
Shell
Scripting
Ssh
Using sudo with Python script
Python
Shell
Subprocess
Unix time and leap seconds
Shell
Unix Timestamp
Leap Second
What version of MongoDB is installed on Ubuntu
Mongodb
Shell
Ubuntu
What does double slash // in `cd //` mean in Linux?
Linux
Bash
Shell
Directory Structure
Cd
How to change RGB colors in Git Bash for windows?
Windows
Git
Shell
Msysgit
Insert line after match using sed
Shell
Sed
How to set uid and gid in Docker Compose?
Bash
Shell
Docker
Docker Compose
total size of group of files selected with 'find'
Shell
Scripting
Find
Grep
Filesize
How do I escape a string for a shell command in node?
Javascript
Shell
Escaping
node.js
V8
How do I write a batch file which opens the GitBash shell and runs a command in the shell?
Git
Shell
Msysgit
Windows Shell
How to run a python file using cron jobs
Python
Shell
Cron
How to assign execute permission to a .sh file in windows to be executed in linux
Linux
Windows
Shell
File Permissions
How to remove carriage return from a variable in shell script
Shell
Unix
What is start-stop-daemon in linux scripting?
Linux
Shell
init.d
Start Stop-Daemon
Pipe input into a script
Shell
Unix
Pipe
Ksh
How to get the last line of a file using cat command
Macos
Shell
Unix
Cat
An easy way to diff log files, ignoring the time stamps?
Parsing
Shell
Diff
Compare
Logging
Shortest command to calculate the sum of a column of output on Unix?
Unix
Math
Shell
Ksh
shell script to remove a file if it already exist
Shell
Count occurrences of character per line/field on Unix
Linux
Bash
Shell
Unix
Scripting
Bash conditionals: how to "and" expressions? (if [ ! -z $VAR && -e $VAR ])
Bash
Shell
Iterate over lines instead of words in a for loop of shell script
Linux
Shell
Convert string to date in bash
String
Bash
Shell
Unix
Date
How do I get my Golang web server to run in the background?
Linux
Shell
Daemon
Number of non repeating lines - unique count
Bash
Shell
Line
Unique
Run a mySQL query as a cron job?
Php
Mysql
Shell
Cron
nginx: use environment variables
Shell
Nginx
Proxy
Environment Variables
Docker
How to kill all processes with the same name using OS X Terminal
Macos
Shell
Kill Process
Remove all special characters and case from string in bash
Regex
Linux
Bash
Shell
Parsing
How to check if multiple variables are defined or not in bash
Bash
Shell
Should I use quotes in environment path names?
Bash
Shell
Dotfiles
What does 2 commas after variable name mean in bash?
Linux
Bash
Shell
How to call shell commands from Ruby
Ruby
Shell
Interop
Replace one substring for another string in shell script
Bash
Shell
Sorting data based on second column of a file
Bash
Shell
Unix
How to pipe stdout while keeping it on screen ? (and not to a output file)
Bash
Shell
Pipe
Output
Stdout
How can I convert tabs to spaces in every file of a directory?
Bash
Shell
Unix
Spaces
In Place
What are the uses of the exec command in shell scripts?
Shell
Unix
Exec
How do I run a shell script without using "sh" or "bash" commands?
Bash
Shell
Alias
Sh
How to call a shell script from python code?
Python
Shell
Environment variable substitution in sed
Linux
Unix
Shell
Sed
How to run mvim (MacVim) from Terminal?
Macos
Shell
Vim
Command Line
Macvim
What is the proper way to test if a parameter is empty in a batch file?
Windows
Shell
Batch File
Cmd
find without recursion
Unix
Find
Shell
Returning a boolean from a Bash function
Bash
Shell
Boolean
Save file to specific folder with curl command
Bash
Shell
Curl
Directory
Checking for a dirty index or untracked files with Git
Git
Shell
How do I list the functions defined in my shell?
Bash
Shell
Function
Unix
Unzip All Files In A Directory
Linux
Shell
Wildcard
Unzip
Which characters need to be escaped when using Bash?
Bash
Shell
Unix
Escaping
Special Characters
How to reload .bash_profile from the command line?
Bash
Shell
Command Line
How to echo shell commands as they are executed
Bash
Shell
Sh
Posix
Trace
Defining a variable with or without export
Linux
Bash
Shell
What's an easy way to read random line from a file?
Shell
Random
How to sort a file in-place?
Linux
Bash
Shell
Unix
Curl to return http status code along with the response
Shell
Curl
What is the Linux equivalent to DOS pause?
Linux
Bash
Shell
Is there a "goto" statement in bash?
Linux
Bash
Shell
Goto
How do you echo a 4-digit Unicode character in Bash?
Bash
Shell
Unicode
Character Encoding
Meaning of $? (dollar question mark) in shell scripts
Shell
Scripting
Special Characters
How to run a shell script in OS X by double-clicking?
Macos
Shell
Scripting
Desktop
Access mysql remote database from command line
Mysql
Shell
Mysql Error-2003
How do you normalize a file path in Bash?
Linux
Bash
Unix
Shell
How to use '-prune' option of 'find' in sh?
Regex
Shell
Find
Manual
find: missing argument to -exec
Bash
Shell
Find
Arguments
Exec
Get most recent file in a directory on Linux
Linux
Shell
Command Line
Reading a space-delimited string into an array in Bash
Arrays
String
Bash
Shell
Should I put #! (shebang) in Python scripts, and what form should it take?
Python
Shell
Python 3.x
Shebang
Assigning default values to shell variables with a single command in bash
Bash
Shell
How to redirect output of an entire shell script within the script itself?
Bash
Shell
Sh
Define an alias in fish shell
Linux
Shell
Fish
Chmod recursively
Linux
Shell
Find
Chmod
How can I use Bash syntax in Makefile targets?
Bash
Shell
Makefile
When should I wrap quotes around a shell variable?
Linux
Bash
Shell
Unix
Quotes
Command to get nth line of STDOUT
Bash
Shell
Sed
Stdout
Random number from a range in a Bash Script
Bash
Shell
Scripting
Command to change the default home directory of a user
Linux
Shell
Unix
Read a variable in bash with a default value
Bash
Shell
Correct Bash and shell script variable capitalization
Bash
Shell
Scripting
Naming Conventions
Capitalization
Ubuntu says "bash: ./program Permission denied"
Bash
Shell
Sh
How to check if a file exists in a shell script
Shell
How to evaluate http response codes from bash/shell script?
Http
Bash
Shell
Http Headers
redirect COPY of stdout to log file from within bash script itself
Bash
Shell
Redirect
Logging
Subtract two variables in Bash
Bash
Shell
Unix
commands not found on zsh
Shell
Osx Lion
Zsh
How do I redirect output to a variable in shell?
Bash
Shell
live output from subprocess command
Python
Shell
Logging
Error Handling
Subprocess
How do I kill background processes / jobs when my shell script exits?
Shell
How do I run multiple background commands in bash in a single line?
Linux
Bash
Shell
Automatically enter SSH password with script
Linux
Shell
Ssh
Openssh
How to run a PowerShell script from a batch file
Windows
Shell
Powershell
Batch File
How to resolve symbolic links in a shell script
Bash
Shell
Scripting
Symlink
How to implement common bash idioms in Python?
Python
Bash
Shell
How do I put an already-running process under nohup?
Bash
Shell
Job Scheduling
Nohup
Interruption
Get current directory name (without full path) in a Bash script
Bash
Shell
Listing only directories in UNIX
Unix
Shell
Executing multi-line statements in the one-line command-line
Python
Shell
Command Line
Heredoc
Pass all variables from one shell script to another?
Bash
Shell
[ :Unexpected operator in shell programming
Linux
Bash
Shell
Shell script "for" loop syntax
Unix
Syntax
Shell
'find -exec' a shell function in Linux
Linux
Bash
Shell
Find
Bsd
Shell equality operators (=, ==, -eq)
Bash
Shell
Take a full page screenshot with Firefox on the command-line
Shell
Firefox
Command Line
Screenshot
Compare a string using sh shell
Shell
Unix
Sh
Shell command to sum integers, one per line?
Shell
Shell: How to call one shell script from another shell script?
Bash
Shell
Shell command to tar directory excluding certain files/folders
Linux
Shell
Archive
Tar
What does set -e mean in a bash script?
Linux
Bash
Shell
Sh
Only get hash value using md5sum (without filename)
Bash
Shell
Md5sum
How do I create a Bash alias?
Macos
Bash
Shell
How to get the list of files in a directory in a shell script?
Bash
Shell
Directory Listing
Temporarily change current working directory in bash to run a command
Bash
Shell
Terminal
Working Directory
source command not found in sh shell
Bash
Shell
Sh
Longest line in a file
Bash
Shell
Utilities
Is there a way to 'uniq' by column?
Linux
Shell
Sorting
Uniq
How can I quickly sum all numbers in a file?
Linux
Perl
Bash
Shell
Awk
Test for non-zero length string in Bash: [ -n "$var" ] or [ "$var" ]
Bash
Shell
If Statement
Syntax
Scripting
How to set ssh timeout?
Shell
Ssh
Timeout
How to exclude this / current / dot folder from find "type d"
Shell
Directory
Find
How to use `jq` in a shell pipeline?
Shell
Pipe
Jq
Add up a column of numbers at the Unix shell
Linux
Unix
Shell
How do I pause my shell script for a second before continuing?
Bash
Shell
Unix
Add line break to 'git commit -m' from the command line
Git
Bash
Shell
How can I remove the extension of a filename in a shell script?
Bash
Shell
Sh
Cut
Gnu Coreutils
docker entrypoint running bash script gets "permission denied"
Bash
Shell
Docker
How to store standard error in a variable
Bash
Shell
Redirect
Variables
Stderr
How can I create nonexistent subdirectories recursively using Bash?
Bash
Shell
Recursion
Subdirectory
How to split one string into multiple variables in bash shell?
Bash
Shell
Variables
How to gzip all files in all sub-directories into one compressed file in bash
Linux
Bash
Shell
Gzip
How to execute XPath one-liners from shell?
Xml
Shell
Xpath
Cross Platform
How to copy a file to multiple directories using the gnu cp command
Linux
Bash
Shell
Shell command to find lines common in two files
Shell
Command Line
Seeing escape characters when pressing the arrow keys in python shell
Python
Shell
Ssh
Arrow Keys
Iterate over a list of files with spaces
Linux
Bash
Shell
Why start a shell command with a backslash?
Bash
Shell
Looking for files NOT owned by a specific user
Linux
File
Shell
Search
How do I get bash completion to work with aliases?
Git
Bash
Shell
Unix
Autocomplete
Extract substring in Bash
String
Bash
Shell
Substring
Count number of lines in a git repository
Bash
Git
Shell
Line Count
Given two directory trees, how can I find out which files differ by content?
Linux
Bash
Shell
Unix
Diff
Copy folder recursively, excluding some folders
Bash
Unix
Shell
Scripting
How to do a non-greedy match in grep?
Regex
Shell
Command Line
Grep
Regex Greedy
How to pass arguments to Shell Script through docker run
Bash
Shell
Docker
Command Line-Arguments
Asynchronous shell exec in PHP
Php
Asynchronous
Shell
Check if passed argument is file or directory in Bash
Bash
Shell
How to retrieve absolute path given relative
Bash
Shell
Path
Absolute
String comparison in bash. [[: not found
Bash
Shell
Ubuntu 11.04
String Comparison
Git says "Warning: Permanently added to the list of known hosts"
Git
Shell
Command Line
Ssh
Terminal
How to kill zombie process
Linux
Shell
Ubuntu
Debian
Zombie Process
Piping command output to tee but also save exit code of command
Bash
Shell
Pipe
Sh
Tee
How do I use the lines of a file as arguments of a command?
Linux
Unix
Shell
Command Line
Command Line-Arguments
Remove duplicate entries in a Bash script
Bash
Shell
Convert command line arguments into an array in Bash
Arrays
Bash
Shell
Shell Script: Execute a python program from within a shell script
Python
Shell
How to run the sftp command with a password from Bash script?
Bash
Shell
Unix
Ssh
Sftp
Efficiently test if a port is open on Linux?
Linux
Bash
Shell
Port
How to assign the output of a Bash command to a variable?
Bash
Shell
How to send data to local clipboard from a remote SSH session
Linux
Macos
Unix
Shell
Clipboard
How to get the second column from command output?
Shell
Awk
Ksh
How to use find command to find all files with extensions from list?
Unix
Shell
Find
How can I check if a command exists in a shell script?
Shell
Retrieve CPU usage and memory usage of a single process on Linux?
Linux
Shell
Memory Management
Cpu Usage
How to get key names from JSON using jq
Json
Shell
Unix
Key
Jq
How to concatenate string variables in Bash
Bash
Shell
Syntax
Concat
String Concatenation
How to check if a string contains a substring in Bash
String
Bash
Shell
Substring
Sh
How do I copy a folder from remote to local using scp?
Shell
Ssh
Command Line
Copy
Scp
Use grep --exclude/--include syntax to not grep through certain files
Unix
Search
Shell
Command Line
Grep
Looking for ALT+LeftArrowKey solution in zsh
Shell
Key
Zsh
Rename multiple files by replacing a particular pattern in the filenames using a shell script
Shell
Shell script to delete directories older than n days
Bash
Shell
How to remove the lines which appear on file B from another file A?
Linux
Shell
Sed
Diff
Grep
How to get "wc -l" to print just the number of lines without file name?
Shell
Wc
Bash script processing limited number of commands in parallel
Linux
Bash
Shell
Quick-and-dirty way to ensure only one instance of a shell script is running at a time
Bash
Shell
Process
Lockfile
How do I create a crontab through a script
Linux
Shell
Ubuntu
Cron
Crontab
How to remove all .svn directories from my application directories
Linux
Shell
Viewing full output of PS command
Linux
Bash
Shell
Process
How to go to each directory and execute a command?
Bash
Shell
Unix
Find
How to break out of a loop in Bash?
Bash
Shell
While Loop
Worth switching to zsh for casual use?
Bash
Shell
Zsh
How to create a database from shell command?
Mysql
Shell
Command Line
How do I fetch lines before/after the grep result in bash?
Bash
Shell
Ubuntu
When do we need curly braces around shell variables?
Bash
Shell
Syntax
Curly Braces
How to get the part of a file after the first line that matches a regular expression
Bash
Shell
Scripting
Grep
How to use sed to remove the last n lines of a file
Linux
Bash
Shell
Sed
The 'eval' command in Bash and its typical uses
Linux
Bash
Shell
Scripting
Eval
How to merge 2 JSON objects from 2 files using jq?
Json
Shell
Command Line
Jq
How to set child process' environment variable in Makefile
Shell
Makefile
Environment Variables
Target
How do I delete/remove a shell function?
Bash
Shell
Zsh
List files with certain extensions with ls and grep
Bash
Shell
Macos
Grep
Run a string as a command within a Bash script
Bash
Shell
Command Line-Arguments
Print a file's last modified date in Bash
Bash
Shell
File
Date
Unix
How to preserve line breaks when storing command output to a variable?
Linux
Bash
Shell
Line Breaks
How to 'grep' a continuous stream?
Linux
Bash
Shell
Grep
Tail
Checking for the correct number of arguments
Shell
Scripting
Why is $$ returning the same id as the parent process?
Bash
Shell
Pid
Subshell
Design patterns or best practices for shell scripts
Design Patterns
Bash
Shell
How to grep for case insensitive string in a file?
Bash
Shell
Awk
Sed
Grep
Command substitution: backticks or dollar sign / paren enclosed?
Bash
Shell
Command
Substitution
What is the difference between ${var}, "$var", and "${var}" in the Bash shell?
Bash
Shell
Variables
Syntax
Is there a Unix utility to prepend timestamps to stdin?
Unix
Shell
Awk
Case insensitive comparison of strings in shell script
String
Shell
Compare
Case Insensitive
How to default to other directory instead of home directory
Bash
Shell
Git Bash
How can I execute PHP code from the command line?
Php
Linux
Function
Shell
Command Line
How to delete duplicate lines in a file without sorting it in Unix
Unix
Shell
Scripting
Sed
Awk
How to process each output line in a loop?
Bash
Shell
Grep
Executing Shell Scripts from the OS X Dock?
Macos
Shell
Dock
How can I delete a newline if it is the last character in a file?
Linux
Perl
Shell
Awk
Sed
Rename Files and Directories (Add Prefix)
Linux
Perl
Shell
Checking if output of a command contains a certain string in a shell script
Bash
Shell
Grep
Redirect stderr and stdout in Bash
Bash
Shell
Stdout
Io Redirection
Stderr
Bash tool to get nth line from a file
Bash
Shell
Unix
Awk
Sed
Difference between single and double quotes in Bash
Bash
Shell
Syntax
Quotes
How to run Unix shell script from Java code?
Java
Unix
Shell
How to execute shell command in Javascript
Javascript
Shell
Command Line
Bash/sh - difference between && and ;
Bash
Shell
Syntax
Multiplatform
How to delete history of last 10 commands in shell?
Linux
Bash
Shell
Terminal
Rename all files in directory from $filename_h to $filename_half?
Bash
Shell
How to ssh to vagrant without actually running "vagrant ssh"?
Shell
Command Line
Ssh
Vagrant
Returning value from called function in a shell script
Shell
Return Value
How can I reverse the order of lines in a file?
Shell
Unix
Command Line
How can I compare numbers in Bash?
Bash
Shell
Numeric
How do I test if a variable is a number in Bash?
Linux
Bash
Shell
How do I use Ruby for shell scripting?
Ruby
Shell
Scripting
How to find directory of some command?
Linux
Shell
Command Line
How do I remove newlines from a text file?
Linux
Bash
Scripting
Shell
Sed
Exit a Script On Error
Bash
Exit
Shell
How can I debug a Bash script?
Bash
Shell
UNIX export command
Bash
Shell
Unix
Fast Linux file count for a large number of files
Linux
Shell
Disk Io
How to determine the current interactive shell that I'm in? (command-line)
Bash
Unix
Shell
Csh
Tcsh
Automatic exit from Bash shell script on error
Bash
Shell
Error Handling
Exit
What does the line "#!/bin/sh" mean in a UNIX shell script?
Shell
Unix
Sh
Shebang
How to get a shell environment variable in a makefile?
Shell
Makefile
Where to place $PATH variable assertions in zsh?
Macos
Shell
Zsh
How can I do division with variables in a Linux shell?
Linux
Bash
Shell
Variables
Division
How to tell if a string is not defined in a Bash shell script
Bash
Shell
Scripting
String
Null
Get exit code of a background process
Linux
Shell
Unix
Process
How to do multiline shell script in Ansible
Shell
Ansible
Why use make over a shell script?
Shell
Makefile
Compilation
What is the difference between a directory and a folder?
Shell
Filesystems
Terminology
Directory
How to sort an array in Bash
Arrays
Bash
Shell
Sorting
What is the use case of noop [:] in bash?
Bash
Shell
Noop
How to force 'cp' to overwrite directory instead of creating another one inside?
Linux
Bash
Shell
Command Line
Cp
How can I copy the output of a command directly into my clipboard?
Linux
Shell
Unix
Terminal
Clipboard
How do you tell if a string contains another string in POSIX sh?
Shell
Unix
shell init issue when click tab, what's wrong with getcwd?
Linux
Bash
Shell
Pwd
Getcwd
Variable interpolation in the shell
Bash
Shell
Unix
What does $$ mean in the shell?
Shell
Scripting
How to empty (clear) the logcat buffer in Android
Android
Shell
Adb
Logcat
rsync copy over only certain types of files using include option
Linux
Bash
Shell
Rsync
Execute and get the output of a shell command in node.js
node.js
Shell
Command Line-Interface
How to parse XML in Bash?
Xml
Bash
Xhtml
Shell
Xpath
Recursive search and replace in text files on Mac and Linux
Linux
Macos
Shell
Check if database exists in PostgreSQL using shell
Postgresql
Shell
Check if pull needed in Git
Git
Bash
Shell
How do I know the script file name in a Bash script?
Linux
Bash
Shell
Scripting
Rearrange columns using cut
Shell
Csv
Cut
How to get the last character of a string in a shell?
String
Bash
Shell
How do I escape the wildcard/asterisk character in bash?
Bash
Shell
Escaping
Delete files older than 10 days using shell script in Unix
Bash
Shell
Unix
Find
Multiline syntax for piping a heredoc; is this portable?
Bash
Shell
Pipe
Sh
Heredoc
Loop through a comma-separated shell variable
Shell
Loops
Unix
For Loop
Cut
Convert Unix timestamp to a date string
Bash
Shell
Unix
Unix Timestamp
How to execute a MySQL command from a shell script?
Mysql
Shell
Ssh
How to send commands when opening a tmux session inside another tmux session?
Shell
Tmux
Which terminal command to get just IP address and nothing else?
Shell
Unix
Ip Address
Hexadecimal To Decimal in Shell Script
Bash
Shell
Hex
Decimal
How do I mount a remote Linux folder in Windows through SSH?
Linux
Shell
Ssh
How can I add a help method to a shell script?
Unix
Shell
How can I strip first X characters from string using sed?
Bash
Shell
Sed
Get first line of a shell command's output
Linux
Bash
Shell
Count occurrences of a char in a string using Bash
Bash
Shell
Sh
Raise error in a Bash script
Linux
Bash
Shell
Error Handling
Scripting
How to make zsh run as a login shell on Mac OS X (in iTerm)?
Macos
Bash
Shell
Zsh
Linux bash: Multiple variable assignment
Linux
Bash
Shell
Variable Assignment
Multiple Variable-Return
In the shell, what does " 2>&1 " mean?
Bash
Shell
Unix
Redirect
How can I recursively find all files in current and subfolders based on wildcard matching?
Linux
Shell
How do I split a string on a delimiter in Bash?
Bash
Shell
Split
Scripting
How to mkdir only if a directory does not already exist?
Shell
Scripting
Ksh
Aix
Mkdir
Why doesn't "total" from ls -l add up to total file sizes listed?
Linux
Shell
Unix
Command
Prompt
What does `kill -0 $pid` in a shell script do?
Bash
Shell
Scripting
Signals
Kill
What's the Android ADB shell "dumpsys" tool and what are its benefits?
Android
Shell
Adb
How to reverse-i-search back and forth?
Linux
Bash
Shell
Search
How to insert a newline in front of a pattern?
Shell
Sed
unix - head AND tail of file
Linux
Bash
Shell
Unix
Scripting
How to specify a multi-line shell variable?
Bash
Shell
How can I extract the first two characters of a string in shell scripting?
Bash
Shell
Grep
Sh
Gnu Coreutils
Bash script to calculate time elapsed
Linux
Bash
Shell
How to base64 encode image in linux bash / shell
Linux
Image
Shell
Variables
Base64
How to select lines between two marker patterns which may occur multiple times with awk/sed
Shell
Unix
Sed
Awk
Pattern Matching
sudo echo "something" >> /etc/privilegedFile doesn't work
Bash
Shell
Scripting
Permissions
Sudo
How do I get both STDOUT and STDERR to go to the terminal and a log file?
Bash
Logging
Shell
How to run a command in the background and get no output?
Shell
While loop stops reading after the first line in Bash
Bash
Shell
Ssh
While Loop
What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)
Bash
Shell
Terminal
Sh
Ksh
ZSH alias with parameter
Shell
Zsh
Alias
Zshrc
About .bash_profile, .bashrc, and where should alias be written in?
Bash
Shell
Environment
How to repeat last command in python interpreter shell?
Python
Shell
Virtualenv
Interpreter
Python Idle
Relative paths based on file location instead of current working directory
Bash
Shell
How to print third column to last column?
Linux
Shell
Unix
Multiple Columns
Compare two files line by line and generate the difference in another file
Shell
Unix
Command not found error in Bash variable assignment
Bash
Shell
Syntax
Sh
Variable Assignment
How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"
Android
Shell
Cmd
Adb
Android Debug
Unix - create path of folders and file
Linux
Bash
Shell
Unix
Scripting
How to grep a text file which contains some binary data?
Shell
Counter increment in Bash loop not working
Linux
Bash
Shell
Scripting
Counter
macOS Catalina 10.15(beta) - Why is ~/.bash_profile not sourced by my shell?
Bash
Shell
Environment Variables
Zsh
Macos Catalina
"No such file or directory" but it exists
Shell
Command Line
Executable
Why 0 is true but false is 1 in the shell?
Shell
Boolean
What does "&" at the end of a linux command mean?
Linux
Shell
Unix
How do I change bash history completion to complete what's already on the line?
Linux
Bash
Shell
Reload .profile in bash shell script (in unix)?
Bash
Shell
Unix
.Bash Profile
How to read a file into a variable in shell?
Shell
Unix
Sh
Using wget to recursively fetch a directory with arbitrary files in it
Shell
Wget
How to append output to the end of a text file
Bash
Shell
Unix shell script find out which directory the script file resides?
Shell
Unix
How to Batch Rename Files in a macOS Terminal?
Bash
Macos
Shell
Terminal
File Rename
How to escape os.system() calls?
Python
Shell
Escaping
Shell one liner to prepend to a file
Shell
Unix
Redirect STDERR / STDOUT of a process AFTER it's been started, using command line?
Linux
Bash
Shell
How do you append to an already existing string?
String
Bash
Shell
String Concatenation
How to append the output to a file?
Linux
Shell
Command Line
Better way of incrementing build number?
Xcode
Shell
Version
Xcrun
Agvtool
Run a JAR file from the command line and specify classpath
Java
Shell
Command Line
Classpath
How do I activate a virtualenv inside PyCharm's terminal?
Python
Django
Shell
Virtualenv
Pycharm
I just assigned a variable, but echo $variable shows something else
Bash
Shell
Sh
Quoting
How do I add tab completion to the Python shell?
Python
Shell
Interpreter
How do I edit /etc/sudoers from a script?
Linux
Shell
Sudo
Compare integer in bash, unary operator expected
Linux
Bash
Shell
Shell Script — Get all files modified after <date>
Unix
Shell
Remove a character from the end of a variable
Bash
Shell
Iterating over each line of ls -l output
Linux
Shell
What is the simplest way to remove a trailing slash from each parameter?
Bash
Shell
Arguments
Rsync
Stripslashes
Remove duplicate lines without sorting
Shell
Scripting
Filter
Uniq
How to read user input into a variable in Bash?
Bash
Shell
Using sed, how do you print the first 'N' characters of a line?
Shell
Sed
Grep
How do I set $PATH such that `ssh user@host command` works?
Unix
Shell
Path
Ssh
Find and replace in file and overwrite file doesn't work, it empties the file
Shell
Unix
Sed
Io Redirection
How can I clear previous output in Terminal in Mac OS X?
Macos
Shell
Buffer
Shell - Write variable contents to a file
Linux
Bash
Shell
sed whole word search and replace
Shell
Sed
Portable way to get file size (in bytes) in the shell
Linux
Bash
Shell
Solaris
Passing argument to alias in bash
Bash
Shell
.Bash Profile
How to add lines to end of file on Linux
Linux
Shell
How do you grep a file and get the next 5 lines
Shell
Grep
run `nvm use` automatically every time there's a .nvmrc file on the directory
Javascript
node.js
Shell
Nvm
Checking from shell script if a directory contains files
Bash
Unix
Shell
Associative arrays in Shell scripts
Bash
Shell
Hashtable
Associative Array
Check if string is neither empty nor space in shell script
Bash
Shell
Freebsd
Windows batch: sleep
Windows
Shell
Batch File
Scripting
Getting pids from ps -ef |grep keyword
Linux
Shell
Daemon
Useless use of cat?
Shell
Command Line
Cat
Sending a mail from a linux shell script
Linux
Email
Shell
Sendmail
What's the magic of "-" (a dash) in command-line parameters?
Linux
Bash
Shell
Unix
Command Line
Display current date and time without punctuation
Bash
Shell
Date
What's the difference between .bashrc, .bash_profile, and .environment?
Shell
Environment
Bash
Colorized grep -- viewing the entire file with highlighted matches
Bash
Shell
Colors
Grep
How can I open a Shell inside a Vim Window?
Vim
Shell
Window
What is the exact meaning of IFS=$'\n'?
Bash
Shell
Variables
Environment Variables
Ifs
How to use multiple arguments for awk with a shebang (i.e. #!)?
Shell
Unix
Awk
Gawk
Shebang
What does "export" do in shell programming?
Bash
Shell
Zsh
File extension for PowerShell 3
Windows
Shell
Powershell
Windows 8
How can I put the current running linux process in background?
Linux
Bash
Shell
Background
'git add --patch' to include new files?
Git
Shell
Git Add
How to hide command output in Bash
Bash
Shell
Running a script inside a docker container using shell script
Bash
Shell
Docker
How can I negate the return-value of a process?
Shell
Cross Platform
Negate
How does bash tab completion work?
Bash
Shell
Autocomplete
Get specific line from text file using just shell script
Linux
Shell
Unix
Sh
How to move all files including hidden files into parent directory via *
Linux
Bash
Shell
Command
What does set -e and exec "$@" do for docker entrypoint scripts?
Shell
Docker
How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
Bash
Shell
Path
What is the most elegant way to remove a path from the $PATH variable in Bash?
Bash
Shell
Path
Variable Expansion
List Processing
Call Python script from bash with argument
Python
Linux
Bash
Shell
Debian
Modifying PATH with fish shell
Shell
Environment Variables
Fish
How do I run a terminal command in a Swift script? (e.g. xcodebuild)
Swift
Bash
Shell
Xcodebuild
Referring to a file relative to executing script
Bash
Shell
How do I paste multi-line bash codes into terminal and run it all at once?
Linux
Bash
Shell
Terminal
Paste
write a shell script to ssh to a remote machine and execute commands
Linux
Shell
Ssh
How to substitute shell variables in complex text files
Linux
Shell
String Interpolation
Changing all occurrences in a folder
Regex
Linux
Shell
Sed
OS X: equivalent of Linux's wget
Macos
Shell
Unix
Http Get
Script parameters in Bash
Linux
Bash
Shell
Parameters
Creating a new user and password with Ansible
Bash
Shell
Ubuntu
Ansible
Appropriate hashbang for Node.js scripts
node.js
Shell
Shebang
How to get the contents of a webpage in a shell variable?
Linux
Bash
Shell
Wget
How do I pipe a subprocess call to a text file?
Python
Shell
Subprocess
How to handle more than 10 parameters in shell
Linux
Bash
Shell
Parameters
Finding most changed files in Git
Git
Shell
How can Bash execute a command in a different directory context?
Bash
Shell
Working Directory
using awk with column value conditions
Linux
Shell
Awk
recursively add file extension to all files
Bash
File
Shell
Command Line
File Extension
Passing variables in remote ssh command
Linux
Bash
Shell
Ssh
how to set environment variables in fish shell
Shell
Fish
Replace a string in shell script using a variable
Unix
Shell
Sed
Padding characters in printf
Bash
Shell
Printf
How do I grab an INI value within a shell script?
Bash
Shell
Config
Ini
Test if a variable is set in bash when using "set -o nounset"
Bash
Shell
Unix
How to get Erlang's release version number from a shell?
Shell
Erlang
Erlang Otp
Convert date time string to epoch in Bash
Bash
Shell
Date
how to check which version of nltk, scikit learn installed?
Python
Linux
Shell
Scikit Learn
Nltk
Curl with multiline of JSON
Bash
Shell
Ubuntu
Curl
How to find the length of an array in shell?
Arrays
Bash
Shell
Multi-line string with extra space (preserved indentation)
String
Bash
Shell
Echo
How to run a shell script on a Unix console or Mac terminal?
Linux
Bash
Macos
Shell
Unix
how do I use the grep --include option for multiple file types?
Shell
Grep
How to convert a string from uppercase to lowercase in Bash?
String
Bash
Shell
Uppercase
Lowercase
grep -P no longer works. How can I rewrite my searches?
Macos
Perl
Shell
Convert decimal to hexadecimal in UNIX shell script
Unix
Shell
Hex
Semicolons superfluous at the end of a line in shell scripts?
Bash
Shell
Syntax
How to run a python script from IDLE interactive shell?
Python
Shell
Command Line
Python Idle
How to set shell for npm run-scripts in Windows
Windows
Shell
Npm
Press alt + numeric in bash and you get (arg [numeric]) what is that?
Bash
Shell
Keyboard Shortcuts
Readline
Compare two folders which have many files inside contents
Unix
Shell
Diff
Clean way to launch the web browser from shell script?
Bash
Shell
Command Line
Standards
Standards Compliance
Can I call a function of a shell script from another shell script?
Shell
Unix
Process all arguments except the first one (in a bash script)
Bash
Shell
Expansion of variables inside single quotes in a command in Bash
Bash
Shell
Variables
Quotes
Run java jar file on a server as background process
Shell
Unix
Executable Jar
How/When does Execute Shell mark a build as failure in Jenkins?
Shell
Unix
Jenkins
Build
Hudson
How to check if a process is running inside docker container?
Shell
Docker
Containers
Asynchronous shell commands
Linux
Bash
Shell
Ubuntu
Asynchronous
Simulating ENTER keypress in bash script
Bash
Shell
Ubuntu
How to split a file into equal parts, without breaking individual lines?
Bash
Shell
Unix
Split
Turning multi-line string into single comma-separated
String
Bash
Shell
Csv
Bash set +x without it being printed
Bash
Shell
Batch renaming files with Bash
Bash
Shell
File Rename
How could the UNIX sort command sort a very large file?
Shell
Sorting
How to run a process with a timeout in Bash?
Linux
Shell
Timeout
shell-script headers (#!/bin/sh vs #!/bin/csh)
Shell
Unix
node.js shell command execution
Javascript
node.js
Shell
Detect if homebrew package is installed
Bash
Shell
Homebrew
How to get a password from a shell script without echoing
Bash
Shell
Scripting
Sh
Is there a way to change the environment variables of another process in Unix?
Linux
Shell
Unix
Gdb
Environment Variables
What is the command to list the available avdnames
Android
Shell
Configuration
Adb
Avd
Writing outputs to log file and console
Bash
Shell
Redirect
Logging
Open a file from Cygwin
Shell
Cygwin
How to make grep only match if the entire line matches?
Shell
Unix
Grep
Define a Makefile variable using a ENV variable or a default value
Bash
Shell
Makefile
Environment Variables
Why is whitespace sometimes needed around metacharacters?
Bash
Shell
Syntax
Syntax Error
How do I get sed to read from standard input?
Linux
Bash
Shell
What is the Bash file extension?
Bash
Shell
Making ZSH default Shell in MacOSX
Bash
Shell
Zsh
Modify a key-value in a json using jq in-place
Json
Bash
Shell
Jq
Find all storage devices attached to a Linux machine
Linux
Bash
Shell
Catching error codes in a shell pipe
Shell
Error Handling
Pipe
Why is an MD5 hash created by Python different from one created using echo and md5sum in the shell?
Python
Shell
Md5sum
What does 'cd -' stand for?
Linux
Bash
Shell
Edit shell script while it's running
Linux
Shell
Csh
How to update one file in a zip archive
Bash
Shell
Zip
Aborting a shell script if any command returns a non-zero value
Linux
Bash
Unix
Shell
What is the difference between "#!/usr/bin/env bash" and "#!/usr/bin/bash"?
Linux
Bash
Shell
Unix
Shebang
Display two files side by side
Linux
Shell
Unix
Command Line
Gnu Coreutils
Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
Shell
Selenium Chromedriver
Debian
Github Actions
Debian Buster
Batch files - number of command line arguments
Shell
Batch File
Scripting
Escape double quote in grep
Linux
Shell
Shell script to set environment variables
Shell
Bash command line and input limit
Bash
Shell
Unix
Command Line-Arguments
Running bash scripts with npm
node.js
Bash
Shell
Npm
Validating parameters to a Bash script
Validation
Bash
Shell
How to filter files when using scp to copy dir recursively?
File
Shell
Filter
Directory
Scp
Python 3 Online Interpreter / Shell
Python
Shell
Python 3.x
Interpreter
How to invoke bash, run commands inside the new shell, and then give control back to user?
Shell
Bash
How do I preserve the remote filename when Downloading a file using curl
Shell
Scripting
Curl
For files in directory, only echo filename (no path)
Bash
Shell
Linux/Unix command to determine if process is running?
Linux
Bash
Shell
Unix
Process
Is there a way to 'pretty' print MongoDB shell output to a file?
Javascript
Mongodb
Shell
OS X Terminal Colors
Macos
Shell
Terminal
Colors
Equivalent of rm and mv in windows .cmd
Bash
Shell
Cmd
Strengths of Shell Scripting compared to Python
Python
Shell
List files by last edited date
Bash
Shell
Is there an Eclipse plugin to run system shell in the Console?
Shell
Eclipse Plugin
While loop to test if a file exists in bash
Bash
Shell
Identifying and removing null characters in UNIX
Unix
Shell
Null
Special Characters
Recursively change file extensions in Bash
Regex
Linux
Bash
Shell
Sh
adb shell su works but adb root does not
Android
Shell
Adb
Root
What tool to use to draw file tree diagram
Bash
Shell
Filesystems
Diagram
How to get the name of the current git branch into a variable in a shell script?
Linux
Git
Bash
Shell
Ubuntu
Multithreading in Bash
Linux
Multithreading
Bash
Shell
Can a shell script set environment variables of the calling shell?
Bash
Shell
Csh
Tcsh
Using cURL to upload POST data with files
Shell
File
Curl
Post
File Upload
What's a concise way to check that environment variables are set in a Unix shell script?
Bash
Unix
Shell
How to join multiple lines of file names into one with custom delimiter?
Linux
Bash
Shell
Parsing
Merge
Forcing bash to expand variables in a string loaded from a file
Linux
Bash
Shell
Unix
Bash: Copy named files recursively, preserving folder structure
Bash
Shell
Using sed to mass rename files
Bash
Shell
Sed
File Rename
How do I know when my docker mysql container is up and mysql is ready for taking queries?
Mysql
Bash
Shell
Docker
Total size of the contents of all the files in a directory
Linux
Shell
Linux: copy and create destination dir if it does not exist
Linux
Bash
Shell
Unix
Cp
How can I assign a name for a screen?
Linux
Unix
Shell
Gnu Screen
How can I redirect the output of the "time" command?
Shell
Unix
Time
Io Redirection
Find all zero-byte files in directory and subdirectories
Linux
Shell
How do I set a task to run every so often?
Macos
Shell
Time
Cron
Scheduled Tasks
Is there any simple way to benchmark Python script?
Python
Unix
Shell
Benchmarking
bash - how to pipe result from the which command to cd
Linux
Bash
Shell
Cd
Is there a way to create key-value pairs in Bash script?
Bash
Shell
Associative Array
How do I assign ls to an array in Linux Bash?
Arrays
Bash
Shell
Ls
Is there a TRY CATCH command in Bash
Bash
Shell
Error Handling
How to add a progress bar to a shell script?
Bash
Shell
Zsh
Elegant way to search for UTF-8 files with BOM?
Php
Utf 8
Shell
Text Editor
What expands to all files in current directory recursively?
Bash
Shell
Wildcard
Glob
Shopt
How to make a shell script global?
Macos
Shell
Unix
In bash, how do I bind a function key to a command?
Bash
Shell
Binding
envsubst: command not found on Mac OS X 10.8
Bash
Shell
Terminal
Sh
Command Line-Interface
How to execute the output of a command within the current shell?
Bash
Shell
Unix
Pipe
Can colorized output be captured via shell redirect?
Bash
Shell
Colors
Terminal
Redirect
Linux shell sort file according to the second column?
Linux
Shell
How to check if a postgres user exists?
Postgresql
Shell
User Management
How do I set a variable to the output of a command in Bash?
Bash
Shell
Command Line
How to delete from a text file, all lines that contain a specific string?
Shell
Sed
Text Parsing
In Place
How to check if a variable is set in Bash
Bash
Shell
Variables
How to reload .bashrc settings without logging out and back in again?
Bash
Shell
Terminal
Reload
Profile
How do I iterate over a range of numbers defined by variables in Bash?
Bash
Shell
For Loop
Syntax
Loop through an array of strings in Bash?
Arrays
Bash
Shell
Run script on mac prompt "Permission denied"
Macos
Shell
Terminal
Use find command but exclude files in two directories
Linux
Shell
Unix
Find
How to execute Python inline from a bash shell
Python
Shell
Inline
Execution
Speed up rsync with Simultaneous/Concurrent File Transfers?
Bash
Shell
Ubuntu 12.04
Rsync
Simultaneous
Is there a way to use shell_exec without waiting for the command to complete?
Php
Shell
What is the maximum size of a Linux environment variable value?
Linux
Shell
Environment Variables
Check whether a certain file type/extension exists in directory
Linux
Bash
Shell
How to print all the columns after a particular number using awk?
Shell
Awk
Detect python version in shell script
Python
Shell
How to mark a build unstable in Jenkins when running shell scripts
Shell
Jenkins
Build
Status
How do you dynamically reload fish config files as you would in bash?
Shell
Configuration Files
Fish
How to create a cron job using Bash automatically without the interactive editor?
Bash
Shell
Cron
How to properly nest Bash backticks
Bash
Shell
Unix
Quoting
Shell script to send email
Linux
Email
Shell
Scripting
How to find the difference in days between two dates?
Bash
Shell
Date
How do I declare a constant in shell script?
Bash
Shell
How to print the number of characters in each line of a text file
Shell
Unix
Sed
Awk
Bash Shell Script - Check for a flag and grab its value
Linux
Bash
Shell
Debian
How to verify downloaded file with .sig file?
Shell
Command Line
Command
Signature
Verify
What are the differences between a login shell and interactive shell?
Bash
Shell
Interactive Shell
How do I launch a Git Bash window with particular working directory using a script?
Bash
Shell
Batch File
Git Bash
What do $? $0 $1 $2 mean in shell script?
Bash
Shell
Ash
Bash autocompletion in Emacs shell-mode
Bash
Shell
Emacs
Autocomplete
rsync not synchronizing .htaccess file
Linux
Shell
Unix
Wildcard
Rsync
Pipe output and capture exit status in Bash
Bash
Shell
Error Handling
Pipe
How to get the last part of dirname in Bash
Bash
Shell
Dirname
How to file split at a line number
Linux
Shell
Split
Filesplitting
How to give arguments to kill via pipe
Linux
Bash
Shell
Command Line
Command Line-Arguments
What does "-ne" mean in bash?
Bash
Shell
Syntax
How to get child process from parent process
Linux
Shell
Process
Child Process
How to restrict SSH users to a predefined set of commands after login?
Linux
Shell
Ssh
How to check the exit status using an 'if' statement
Bash
Shell
If Statement
Error Handling
Exit Code
Running multiple commands in one line in shell
Bash
Shell
Print execution time of a shell command
Shell
Command Line
What's the meaning of the parameter -e for bash shell command line?
Bash
Shell
Why sudo cat gives a Permission denied but sudo vim works fine?
Bash
Shell
Echo
Cat
How to copy to system clipboard from tmux output after mouse selection?
Macos
Shell
Command Line
Tmux
How to pass array as an argument to a function in Bash
Arrays
Bash
Shell
Difference between terms: "option", "argument", and "parameter"?
Bash
Shell
Parameters
Arguments
Option
How to execute ssh-keygen without prompt
Linux
Bash
Shell
Ssh
Linux: Which process is causing "device busy" when doing umount?
Linux
Shell
Device
Mount
Umount
How to invoke a Linux shell command from Java
Java
Shell
Command Line
Linux Shell Script For Each File in a Directory Grab the filename and execute a program
Linux
Shell
Several ways to call a windows batch file from another one or from prompt. Which one in which case?
Windows
Batch File
Shell
Checking for environment variables
Linux
Bash
Shell
How to source a script in a Makefile?
Shell
Makefile
How to determine whether a given Linux is 32 bit or 64 bit?
Linux
Shell
32bit 64bit
Processor
An example of how to use getopts in bash
Bash
Shell
Getopts
I get "dquote>" as a result of executing a program in linux shell
Linux
Shell
Quotes
How do I get the absolute directory of a file in bash?
Linux
Bash
Shell
Capture stdout and stderr into different variables
Bash
Shell
Command Line
Io Redirection
how to fix the issue "Command /bin/sh failed with exit code 1" in iphone
Iphone
Shell
Ios6
xcode4.5
Build Error
Clear screen in shell
Python
Shell
Screen
Interactive shell using Docker Compose
Shell
Docker
Interactive
Docker Compose
Capturing Groups From a Grep RegEx
Bash
Shell
Grep
How to append one file to another in Linux from the shell?
Linux
Shell
File
Ubuntu
Append
How to get process ID of background process?
Linux
Shell
Background Process
Pid
What are the differences between using the terminal on a mac vs linux?
Macos
Bash
Shell
Ubuntu
Terminal
How to check if an URL exists with the shell and probably curl?
Shell
Curl
How to declare 2D array in bash
Linux
Bash
Shell
Find multiple files and rename them in Linux
Linux
Bash
Shell
Scripting
Suse
How to get a list of programs running with nohup
Linux
Shell
Centos
Nohup
Highlight Bash/shell code in Markdown files
Bash
Shell
Markdown
Github Flavored-Markdown
How to execute mongo commands through shell scripts?
Mongodb
Bash
Shell
Sh
Export from sqlite to csv using shell script
Sqlite
Shell
Csv
Indenting multi-line output in a shell script
Linux
Bash
Shell
Value too great for base (error token is "08")
Bash
Shell
Get Android OS version of device connected via ADB
Android
Shell
Adb
How to stop java process gracefully?
Java
Linux
Windows
Shell
Process
find -mtime files older than 1 hour
Bash
Shell
Command Line
Cron
How to embed bash script directly inside a git alias
Git
Bash
Shell
Alias
Exporting a function in shell
Function
Shell
Export
Best way to make a shell script daemon?
Bash
Shell
Daemon
Easiest way to strip newline character from input string in pasteboard
Macos
Unix
Shell
How can I kill a process by name instead of PID, on Linux?
Linux
Bash
Shell
Kill
How to kill childprocess in nodejs?
node.js
Shell
Child Process
Error: EACCES: permission denied, access '/usr/lib/node_modules'
Shell
Npm
Global environment variables in a shell script
Shell
Scripting
Environment Variables
When in Vim insert mode, is there a way to add filepath autocompletion?
Vim
Shell
Autocomplete
Text Editor
Escaping in makefile
Shell
Makefile
Escaping
Include additional files in .bashrc
Linux
Shell
Command Line
Bash
To show only file name without the entire directory path
Shell
Unix
Directory
Ls
What does the 'export' command do?
Shell
Unix
Command
Environment Variables
How to save a Python interactive session?
Python
Shell
Read Eval-Print-Loop
Interactive Session
Automate scp file transfer using a shell script
Shell
Scp
Unix shell script to truncate a large file
Bash
Shell
Truncate
Bash regex =~ operator
Bash
Shell
Unix
Split bash string by newline characters
String
Bash
Shell
How to urlencode data for curl command?
Bash
Shell
Curl
Scripting
Urlencode
./configure : /bin/sh^M : bad interpreter
Linux
Bash
Shell
Newline
What's the best way to send a signal to all members of a process group?
Linux
Shell
Process
Signals
Continuously read from STDOUT of external process in Ruby
Ruby
Shell
Process
Stdout
Stdin
How to split a file and keep the first line in each of the pieces?
Linux
Bash
File
Shell
Text
Arrays in unix shell?
Arrays
Bash
Shell
Unix
Unix standard directory to put custom executables or scripts?
Linux
Shell
Unix
Command Line
Directory Structure
Execute a shell function with timeout
Bash
Function
Shell
Timeout
How to find file accessed/created just few minutes ago
Linux
Bash
Shell
Unix
Find
How to get file creation date/time in Bash/Debian?
Linux
Bash
Shell
Debian
Ls
How to test dockerignore file?
Docker
Shell
Node Modules
Dockerignore
How can I count all the lines of code in a directory recursively?
Bash
Shell
How to exclude a directory in find . command
Linux
Shell
Find
Get just the filename from a path in a Bash script
Bash
Scripting
Shell
How do I merge one directory into another using Bash?
Bash
Shell
Scripting
Command Line
Sh
Can GNU make handle filenames with spaces?
Shell
Makefile
Gnu
How to check if $? is not equal to zero in unix shell scripting?
Shell
Unix
Ignoring specific errors in a shell script
Bash
Shell
Error Handling
Going to a specific line number using Less in Unix
Shell
Unix
Search
Less Unix
What are my environment variables?
Linux
Bash
Shell
Ubuntu
How can I execute a command stored in a variable?
Shell
Unix
Parameter Expansion
How to cut first n and last n columns?
Linux
Bash
Shell
In bash, is there an equivalent of die "error msg"
Bash
Shell
Count line lengths in file using command line tools
Bash
Shell
Command Line
Scripting
Insert multiple lines into a file after specified pattern using shell script
Linux
Bash
Shell
Sed
Awk
How can I send the stdout of one process to multiple processes using (preferably unnamed) pipes in Unix (or Windows)?
Windows
Bash
Unix
Shell
Pipe
Losing newline after assigning grep result to a shell variable
Shell
Bash Scripting - How to set the group that new files will be created with?
Linux
Bash
Unix
Shell
Permissions
What is the purpose of "&&" in a shell command?
Bash
Shell
Command Line
Syntax
Get program execution time in the shell
Linux
Bash
Shell
How to find processes based on port and kill them all?
Bash
Shell
Merge multiple jpg into single pdf in Linux
Linux
Shell
Ubuntu
How to load ~/.bash_profile when entering bash from within zsh?
Bash
Macos
Shell
Zsh
Zshrc
Generate a random filename in unix shell
Unix
Shell
Random
Tcsh
How to put a line comment for a multi-line command
Bash
Shell
Comments
Exception handling in shell scripting?
Bash
Shell
Exception Handling
How can I make bash tab completion behave like vim tab completion and cycle through matching matches?
Bash
Shell
Vim
Concise and portable "join" on the Unix command-line
Shell
Unix
unix - count of columns in file
Linux
Bash
Shell
Unix
Scripting
Remove part of path on Unix
Shell
Unix
Scripting
Sed
Execute Shell Script after post build in Jenkins
Shell
Jenkins
Jenkins Plugins
Is mixing getopts with positional parameters possible?
Bash
Shell
Parameters
How to store command results in a shell variable?
Bash
Shell
Is it possible to go into ipython from code?
Python
Shell
Debugging
Ipython
Pdb
How can I tell which Unix shell I am using?
Linux
Shell
Unix
Counting number of characters in a file through shell script
Linux
Shell
How do I measure duration in seconds in a shell script?
Shell
Timing
How can I tell whether I'm in a screen?
Linux
Shell
Gnu Screen
Pseudo-terminal will not be allocated because stdin is not a terminal
Linux
Bash
Shell
Ssh
How do file descriptors work?
Bash
Shell
Stdout
Stdin
File Descriptor
Trying to retrieve first 5 characters from string in bash error?
Bash
Shell
Installing and Running MongoDB on OSX
node.js
Mongodb
Macos
Shell
Database
execute commands as user after Vagrant provisioning
Shell
Vagrant
Escape dollar sign in string by shell script
Bash
Shell
Unit testing for shell scripts
Linux
Unit Testing
Shell
Scripting
How to delete mysql database through shell command
Mysql
Database
Linux
Shell
Ubuntu
How to run 'cd' in shell script and stay there after script finishes?
Bash
Shell
Cd
Pwd
How to run a shell script when a file or directory changes?
Linux
Shell
Inotify
How to get remote file size from a shell script?
Shell
Filesize
in linux terminal, how do I show the folder's last modification date, taking its content into consideration?
Linux
Bash
Shell
Scripting
Ubuntu
How to start a shell without any user configuration?
Linux
Macos
Bash
Shell
Create file with contents from shell script
Bash
Shell
Check if an element is present in a Bash array
Arrays
Bash
Shell
Search
Writing try catch finally in shell
Shell
Syntax
Try Catch
Finally
How can I pretty-print a JSON file from the command line?
Json
Shell
Command Line
How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
Shell
Perl
Awk
Sed
Pattern Matching
Why do shell script comparisons often use x$VAR = xyes?
Unix
Shell
Autotools
How to pass in password to pg_dump?
Bash
Postgresql
Shell
Crontab
Test for empty string with X""
String
Bash
Shell
Posix
How To Run PHP From Windows Command Line in WAMPServer
Php
Windows
Shell
Command Line
Wamp
How to run a shell script on every request?
Shell
Nginx
Are shell scripts sensitive to encoding and line endings?
Bash
Shell
Sh
Debugging monit
Debugging
Shell
Monit
How to convert DATE to UNIX TIMESTAMP in shell script on MacOS
Linux
Macos
Date
Shell
How to create a link to a directory
Linux
Shell
Command
What is the purpose of the : (colon) GNU Bash builtin?
Bash
Shell
Built In
How to check if running in Cygwin, Mac or Linux?
Bash
Shell
Cross Platform
Cygwin
How to remove ^[, and all of the escape sequences in a file using linux shell scripting
Linux
Shell
Scripting
Bash script error: "function: not found". Why would this appear?
Bash
Shell
Unix
Ubuntu
Terminal
Randomly shuffling lines in Linux / Bash
Linux
Bash
Shell
Sh
How to get only process ID in specify process name in linux?
Regex
Linux
Shell
Redhat
How do I use a pipe in the exec parameter for a find command?
Bash
Shell
Find
Setting environment variables in Linux using Bash
Linux
Bash
Unix
Shell
LINES and COLUMNS environmental variables lost in a script
Bash
Shell
Terminal
Environment Variables
xargs with multiple arguments
Linux
Bash
Shell
Command Line-Arguments
Xargs
Replacement for source in sh
Bash
Shell
Sh
Dot Source
Mongodb - Difference between running "mongo" and "mongod" databases
Mongodb
Shell
Database
Check folder size in Bash
Bash
Shell
Directory
Can I export a variable to the environment from a Bash script without sourcing it?
Bash
Shell
Unix
Environment Variables
How can I check if PostgreSQL is installed or not via Linux script?
Linux
Postgresql
Shell
Source files in a bash script
Bash
Shell
Ubuntu
Force "git status" to output color on the terminal (inside a script)
Git
Shell
Unix
Io
Terminal
How do I run a program with a different working directory from current, from Linux shell?
Linux
Shell
Environment
How search for files using regex in linux shell script
Regex
Linux
Shell
Search
diff a directory recursively, ignoring all binary files
Bash
Shell
Diff
Binaryfiles
${BASH_SOURCE[0]} equivalent in zsh?
Shell
Zsh
Importing functions from a shell script
Shell
How to remove space from string?
Bash
Shell
Execute a shell script in current shell with sudo permission
Linux
Bash
Shell
Permissions
Sudo
sudo cat << EOF > File doesn't work, sudo su does
Bash
Shell
Sudo
echo >&2 "some text" what does it mean in shell scripting
Shell
Unix
Sh
Run bash command on jenkins pipeline
Linux
Bash
Shell
Jenkins
Groovy
How to Export a Multi-line Environment Variable in Bash/Terminal e.g: RSA Private Key
Bash
Shell
Environment Variables
Multiline
Private Key
How can you untar more than one file at a time?
Unix
Shell
Tar
Get Current date in epoch from Unix shell script
Unix
Shell
Epoch
Check existence of input argument in a Bash shell script
Bash
Shell
How do I prompt for Yes/No/Cancel input in a Linux shell script?
Linux
Bash
Shell
Scripting
Difference between sh and Bash
Bash
Shell
Unix
Sh
How to generate random number in Bash?
Bash
Shell
Random
Suppressing diffs for deleted files in git
Git
Shell
File Diffs
python getoutput() equivalent in subprocess
Python
Shell
Command
Subprocess
pipe stdout and stderr to two different processes in shell script?
Bash
Shell
Pipe
Io Redirection
export not working in my shell script
Linux
Shell
Variables
Terminal
Replace the first line in a text file by a string
Linux
Shell
Unix
Shell script to capture Process ID and kill it if exist
Bash
Shell
Scripting
How to pass argument in Expect through the command line in a shell script
Linux
Bash
Shell
Expect
Automate mysql_secure_installation with echo command via a shell script
Mysql
Linux
Shell
Using find to locate files that match one of multiple patterns
Shell
Find
Using the passwd command from within a shell script
Linux
Bash
Unix
Shell
Is there an interactive interpreter for C#?
C#
Shell
Command to clear shell while using emacs shell
Shell
Emacs
Elisp
Android ADB commands to get the device properties
Android
Shell
Adb
Replace whole line containing a string using Sed
String
Shell
Sed
How do you call a function defined in .bashrc from the shell?
Bash
Function
Shell
How to select a random item from an array in shell
Arrays
Shell
Random
how to remove the first two columns in a file using shell (awk, sed, whatever)
Perl
Shell
Awk
Sed
Cut
How to comment out particular lines in a shell script
Shell
Unix
Sh
Is PowerShell ready to replace my Cygwin shell on Windows?
Unix
Shell
Powershell
How to write a shell script that starts tmux session, and then runs a ruby script
Ruby
Bash
Shell
Tmux
What's the meaning of a ! before a command in the shell?
Linux
Bash
Shell
Unix
Sh
How to read mutliline input from stdin into variable and how to print one out in shell(sh,bash)?
Bash
Shell
Stdin
Multiline
How to recognize whether a script is running on a tty?
Python
Shell
Custom format for time command
Bash
Shell
Time
Format
Get wireless SSID through shell script on Mac OS X
Macos
Shell
Execute a file with arguments in Python shell
Python
Shell
In Windows 7 Git Bash, is there a way to explore the directory at the current location?
Shell
Windows 7
Cmd
Git Bash
Shell Script Syntax Error: Unexpected End of File
Shell
Sh
Exit Shell Script Based on Process Exit Code
Bash
Shell
Command to get time in milliseconds
Linux
Bash
Shell
Time
Delete all broken symbolic links with a line?
Bash
Shell
Unix
Symlink
How does Ctrl-C terminate a child process?
Bash
Shell
Process
Sh
How to use sed to extract substring
Linux
Shell
Ubuntu
Xml Parsing
Sed
Get the SQL query result without the table format
Mysql
Sql
Shell
Increment variable value by 1 (shell programming)
Shell
Debugging
Variables
Ubuntu
Command Line
Ansible Command module says that '|' is illegal character
Shell
Ansible
Dpkg
Ansible Playbook
How to wait for an open port with netcat?
Bash
Shell
Netcat
How do you run a script on login in *nix?
Linux
Bash
Macos
Unix
Shell
Hidden features of Bash
Bash
Shell
Scripting
Hidden Features
PHP shell_exec() vs exec()
Php
Shell
Command
Exec
How to represent multiple conditions in a shell if statement?
Bash
Shell
Unix
executing shell command in background from script
Bash
Unix
Shell
bash: silently kill background function process
Linux
Bash
Shell
Unix
Scripting
Using grep and sed to find and replace a string
Linux
Shell
Unix
Sed
Grep
How to decode URL-encoded string in shell?
Bash
Shell
Awk
Sed
Urldecode
Using Bash to display a progress indicator
Bash
Shell
Unix
Progress
Adding Counter in shell script
Bash
Shell
How to download the latest artifact from Artifactory repository?
Shell
Artifactory
Continuous Deployment
-bash: __git_ps1: command not found
Bash
Shell
Command
Git Bash
Ruby 2.0
How can I list the files in a zip archive without decompressing it?
Linux
Bash
Shell
Unix
Zip
Get SQL query count during a Django shell session
Python
Sql
Django
Shell
Ansible playbook shell output
Shell
Sed
Ansible
Run command-line SQLite 3 query and exit
Shell
Command Line
Sqlite
How to check if running as root in a bash script
Bash
Shell
Root
Write output to a file after piped to jq
Shell
Io Redirection
Run Python script without Windows console appearing
Python
Windows
Shell
Print a character repeatedly in bash
Bash
Shell
What are the error exit values for diff?
Bash
Shell
Diff
Exit Code
Is there a way to avoid positional arguments in bash?
Bash
Shell
Scripting
Meaning of "=~" operator in shell script
Regex
Linux
Bash
Shell
How can I find encoding of a file via a script on Linux?
File
Shell
Unix
Encoding
How to check if an environment variable exists and get its value?
Bash
Shell
Concatenating multiple text files into a single file in Bash
Bash
Shell
How do I suppress shell script error messages?
Shell
Suppress Warnings
Error Suppression
Shell Script: How to write a string to file and to stdout on console?
Bash
Shell
Command Line
Sh
Ksh
fork and exec in bash
Linux
Bash
Scripting
Shell
How to schedule to run first Sunday of every month
Bash
Shell
Cron
Redhat
How do I add a line break for read command?
Bash
Shell
Unix
How can I batch rename files using the Terminal?
Macos
Shell
Terminal
File Rename
Batch Rename
Using the RUN instruction in a Dockerfile with 'source' does not work
Bash
Shell
Docker
Pipe multiple commands into a single command
Bash
Shell
Process
Pipe
Subshell
How to run a vim command from the shell command-line?
Bash
Shell
Vim
Zsh
adb remount permission denied, but able to access super user in shell -- android
Android
Shell
Permissions
Adb
Root
Run one command after another, even if I suspend the first one (Ctrl-z)
Bash
Shell
Command
Signals
Suspend
What is the difference between using `sh` and `source`?
Linux
Bash
Shell
Unix
How to suppress Terminated message after killing in bash?
Bash
Unix
Shell
How to convert a string to lower case in Bash?
String
Bash
Shell
Lowercase
How to specify the private SSH-key to use when executing shell command on Git?
Git
Bash
Shell
Ssh
How to convert hex to ASCII characters in the Linux shell?
Linux
Bash
Shell
Encoding
Scripting
Round a divided number in Bash
Linux
Bash
Math
Shell
Rounding
How to parse XML using shellscript?
Linux
Bash
Shell
How to copy and edit files in Android shell?
Android
Linux
Shell
Android Ndk
Sh
Remove function definition (unalias equivalent)
Bash
Shell
Zsh
Are there any languages that compile to Bash?
Bash
Shell
Scripting
Coffeescript
does linux shell support list data structure?
Linux
Bash
Shell
Ash
How to input a path with a white space?
Shell
Replace whole line when match found with sed
Shell
Replace
Sed
Match
Run Python script at startup in Ubuntu
Python
Linux
Shell
Ubuntu
How to set up tmux so that it starts up with specified windows opened?
Shell
Production Environment
Tmux
How can I use inverse or negative wildcards when pattern matching in a unix/linux shell?
Bash
Shell
Pattern Matching
Glob
How to add line number for output, prompt for line, then act based on input?
Linux
Shell
What are the differences of system(), exec() and shell_exec() in PHP?
Php
Shell
System
Exec
Shell Exec
How do I use shell variables in an awk script?
Bash
Shell
Awk
Command line execution in different folder
Python
Shell
Command Line
How to npm install global not as root?
node.js
Shell
Exit code of variable assignment to command substitution in Bash
Linux
Bash
Shell
Exit Code
How to execute a shell script on a remote server using Ansible?
Shell
Ansible
Remote Server
Echo string to .txt file with multiple lines - with Windows Batch file
Windows
Shell
Batch File
is there an escape character for envsubst?
Bash
Shell
Envsubst
What does the colon dash ":-" mean in bash
Bash
Shell
Syntax
Semantics
A Python script that activates the virtualenv and then runs another Python script?
Python
Windows
Shell
Command
Virtualenv
Bash or KornShell (ksh)?
Bash
Shell
Unix
Scripting
Ksh
Move top 1000 lines from text file to a new file using Unix shell commands
Unix
Shell
Copy
Django runserver permanent
Django
Shell
What is /dev/null 2>&1?
Shell
Syntax
Posix
Io Redirection
using rot13 and tr command for having an encrypted email address
Shell
How to run a script at the start up of Ubuntu?
Shell
Ubuntu 11.04
How to remove trailing whitespaces for multiple files?
Shell
Find
Whitespace
Removing Whitespace
In Place
Shell variable expansion in git config
Git
Shell
How to match once per file in grep?
Regex
Perl
Shell
Unix
Grep
Git Checkout Latest Tag
Git
Bash
Shell
Tags
When grep "\\" XXFile I got "Trailing Backslash"
Linux
Bash
Shell
Grep
Boolean operators ( &&, -a, ||, -o ) in Bash
Bash
Shell
Unix
Boolean
Operators
File not found error when launching a subprocess containing piped commands
Python
Shell
Subprocess
Pipe
How to check if a file contains a specific string using Bash
Bash
Shell
Grep
Better windows command line shells
Windows
Shell
Cmd
rm fails to delete files by wildcard from a script, but works from a shell prompt
Linux
Bash
Shell
Vim: Pipe selected text to shell cmd and receive output on vim info/command line
Vim
Shell
Command Line
Pipe
Avoid gnome-terminal close after script execution?
Linux
Bash
Shell
Ssh
Why does "local" sweep the return code of a command?
Bash
Shell
Local
How do I know if I'm running a nested shell?
Linux
Bash
Shell
Unix
How do I extract the created date out of a Mongo ObjectID
Shell
Mongodb
Timestamp
Unix Timestamp
How to get arguments with flags in Bash
Bash
Shell
Diff files present in two different directories
Unix
Shell
Diff
Recursive copy of a specific file type maintaining the file structure in Unix/Linux?
Linux
Bash
Shell
Rsync
Cp
Waiting for background processes to finish before exiting script
Bash
Shell
Unix
Tcl
Grep
Get Application Name/ Label via ADB Shell or Terminal
Android
Shell
Label
Adb
Shell - check if a git tag exists in an if/else statement
Git
Bash
Shell
Why does /bin/sh behave differently to /bin/bash even if one points to the other?
Linux
Bash
Shell
Sh
shell-init: error retrieving current directory: getcwd -- The usual fixes do not wor
Linux
Bash
Shell
Ssh
Ansible
Passing environment variables in npm-scripts
node.js
Shell
Npm
Environment Variables
How to run shell script file using nodejs?
node.js
Shell
Cassandra
Find file in directory from command line
Bash
Shell
Autocomplete
Difference between wait and sleep
Bash
Shell
Wait
Sleep
How can I read a file and redirect it to a variable?
Linux
Shell
Scripting
Write byte at address (hexedit/modify binary from the command line)
Shell
Scripting
Hex
Patch
Edit
Unix ls command: show full path when using options
Shell
Unix
Command Line
Ls
Shell script variable not empty (-z option)
Shell
Rename multiple files in shell
Bash
Shell
Calling an executable program using awk
Shell
Awk
Bash scripting, multiple conditions in while loop
Bash
Shell
Loops
While Loop
Set a parent shell's variable from a subshell
Bash
Shell
Subshell
Convert line endings
Bash
Shell
Sed
Command Line
Dos2unix
subtract days from a date in bash
Linux
Bash
Shell
Append line to /etc/hosts file with shell script
Linux
Bash
Shell
Ubuntu
Sed
Trim leading and trailing spaces from a string in awk
Shell
Unix
Awk
Check if a file exists with a wildcard in a shell script
Shell
Sh
Wildcard
Shell script - remove first and last quote (") from a variable
String
Bash
Shell
Unix
Sed
'\r': command not found - .bashrc / .bash_profile
Bash
Shell
Cygwin
Newline
Changing default shell in Linux
Linux
Bash
Shell
Environment
Tcsh
Make xargs handle filenames that contain spaces
Shell
Find
Xargs
How to view files in binary from bash?
Bash
Shell
Binary
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" How does that work?
Linux
Bash
Shell
Unix
Scripting
Use grep to find content in files and move them if they match
Linux
Shell
Scripting
Grep
How to execute a shell script from C in Linux?
C
Linux
Shell
Example of using named pipes in Linux shell (Bash)
Linux
Bash
Shell
Pipe
Named Pipes
shell replace cr\lf by comma
Bash
Shell
Newline
Text Processing
Why are scripting languages (e.g. Perl, Python, and Ruby) not suitable as shell languages?
Python
Ruby
Perl
Bash
Shell
Suppress warning messages using mysql from within Terminal, but password written in bash script
Mysql
Bash
Shell
How can I suppress all output from a command using Bash?
Bash
Shell
Scripting
Echo
self-deleting shell script
Bash
Shell
Delete all branches that are more than X days/weeks old
Git
Shell
How can I make TMUX be active whenever I start a new shell session?
Shell
Session
Terminal
Tmux
Shell script common template
Bash
Shell
ZSH not recognizing my aliases?
Bash
Shell
Sh
Zsh
Zshrc
Running windows shell commands with python
Python
Windows
Operating System
Shell
Exclude list of files from find
Linux
Shell
Find
Way to create multiline comments in Bash?
Shell
Comments
Multiline
Test if remote TCP port is open from a shell script
Shell
Tcp
Port
Solaris
Telnet
Send a ping to each IP on a subnet
Networking
Shell
Ping
Arp
Can you prevent a command from going into the bash shell command history?
Linux
Bash
Unix
Shell
What is the Visual Studio shell (standalone shell) good for?
Windows
Visual Studio
Eclipse
Shell
How do I capture all of my compiler's output to a file?
Linux
Shell
G++
Makefile
Io Redirection
What is the difference between $@ and $* in shell scripts?
Shell
Scripting
How do I determine if a web page exists with shell scripting?
Shell
Unix
Converting relative path into absolute path?
Perl
Unix
Shell
Path
Absolute Path
Creating files with some content with shell script
Shell
Unix
Scripting
Can pm2 run an 'npm start' script
node.js
Shell
Npm
Pm2
Multi-dimensional arrays in Bash
Arrays
Bash
Shell
Multidimensional Array
Why do we need mktemp?
Linux
Shell
Filesystems
read stdin in function in bash script
Bash
Shell
Pipe
Bash Function
Exclude all permission denied messages from "du"
Linux
Shell
Warnings
Suppress Warnings
Du
Calling one Bash script from another Script passing it arguments with quotes and spaces
Bash
Shell
Double Quotes
Salt Stack
How to download GitHub Release from private repo using command line
Shell
Github
Command Line
How to check if ssh-agent is already running in bash?
Linux
Bash
Shell
Ssh
Using if elif fi in shell scripts
Bash
Shell
How to extract a value from a string using regex and a shell?
Regex
Shell
Remove first directory components from path of file
Bash
Shell
Text Processing
How to turn off Wifi via ADB?
Android
Shell
Adb
Android Wifi
Shell: redirect stdout to /dev/null and stderr to stdout
Linux
Bash
Shell
Sh
How to check if the file is a binary file and read all the files which are not?
Shell
Unix
Binaryfiles
Redirecting output of bash for loop
Linux
Bash
Shell
Single command to create a file and set its permission
Shell
Unix
File Permissions
Ksh
Git run shell command for each commit
Git
Shell
How to read a .properties file which contains keys that have a period character using Shell script
Linux
Bash
Shell
Unix
unzip password protected zip in unix
Shell
Unix
Unzip
How to temporarily switch profiles for AWS CLI?
Bash
Shell
Amazon Web-Services
Command Line
Aws Cli
How to attach a file using mail command on Linux?
Linux
Unix
Shell
Email
In a bash script/command how can I make a PC beep noise, or play a sound file?
Shell
Audio
Replace whitespace with a comma in a text file in Linux
Linux
Shell
Csv
Sed
Awk
Copy/Paste in emacs ansi-term shell
Shell
Emacs
How to execute shell script from LaTeX?
Shell
Latex
Ruby run shell command in a specific directory
Ruby
Shell
Command
How to get the PID of a process by giving the process name in Mac OS X ?
Macos
Bash
Shell
Process
Pid
POSIX-Compliant Way to Scope Variables to a Function in a Shell Script
Function
Shell
Variables
Scope
Posix
Read JSON data in a shell script
Json
Bash
Shell
Test if a command outputs an empty string
Bash
Shell
Commandline hexdump with ASCII output?
Shell
Unix
calling conda source activate from bash script
Macos
Shell
Virtualenv
Conda
Python - Activate conda env through shell script
Python
Bash
Shell
Conda
How to run a bash script from C++ program
C++
Linux
Bash
Shell
Linux shell script to add leading zeros to file names
Linux
Bash
Shell
Grep
Why do you need ./ (dot-slash) before executable or script name to run it in bash?
Bash
Shell
Unix
Command Line
is there a way to see the actual contents of a symlink?
Linux
Shell
Filesystems
Symlink
Cat
Subtract 1 hour from date in UNIX shell script
Shell
Datetime
Unix
What is the *nix command to view a user's default login shell
Linux
Shell
Unix
decode base64: invalid input
Linux
Shell
Base64
Use bash to find first folder name that contains a string
Bash
Shell
Find
How to remove all non-numeric characters from a string in Bash?
Linux
Bash
Shell
Ubuntu
Terminal
Store grep output in an array
Arrays
Bash
Shell
How to only get file name with Linux 'find'?
Linux
Shell
Find
Running script upon login in mac OS X
Bash
Shell
Automation
Osx Snow-Leopard
How to solve ADB device unauthorized in Android ADB host device?
Android
Shell
Adb
Run multiple python scripts concurrently
Python
Linux
Shell
How to get osx shell script to show colors in echo
Macos
Bash
Shell
Echo
What Linux shell should I use?
Linux
Shell
Bash variable assignment and command not found
Bash
Shell
Variables
Cygwin
Shell script to count files, then remove oldest files
Linux
Bash
Shell
How does the #! shebang work?
Shell
Unix
Scripting
Shebang
How to read output of sed into a variable
Shell
Variables
Sed
How do I get the effect and usefulness of "set -e" inside a shell function?
Shell
Error Handling
Sh
How to override the path of PHP to use the MAMP path?
Php
Macos
Shell
Path
Mamp
How to assign the output of a command to a Makefile variable
Shell
Makefile
How to Pass parameters for a Ant script , which is invoked via shell script?
Shell
Scripting
Ant
Shellexecute
Create a dedicated folder for every zip files in a directory and extract zip files
Linux
Shell
Sed
Awk
Unzip
How to detect running app using ADB command
Android
Shell
Adb
One line if/else condition in linux shell scripting
Linux
Shell
If Statement
Shell script: Run function from script over ssh
Linux
Bash
Shell
Sh
subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
Python
Linux
Shell
How to check if a group exists and add if it doesn't in Linux Shell Script
Linux
Shell
Ubuntu
How can I shuffle the lines of a text file on the Unix command line or in a shell script?
Shell
Random
Command Line
Awk
Shuffle
How can I loop over the output of a shell command?
Linux
Bash
Shell
Shell script to open a URL
Bash
Shell
Escaping forward slashes in sed command
Bash
Shell
Sed
Docker compose won't find $PWD environment variable
Shell
Docker
Environment Variables
Install ONLY mongo shell, not mongodb
Mongodb
Shell
Rhel
Detect if PATH has a specific directory entry in it
Bash
Shell
Path
source all files in a directory from .bash_profile
Bash
Shell
Scripting
Get ceiling integer from number in linux (BASH)
Linux
Bash
Shell
Ceil
Select random lines from a file
Bash
Shell
Random
Text Processing
Open and write data to text file using Bash?
Bash
Shell
Expression after last specific character
Linux
Bash
Shell
Unix
Scripting
Rename Directory Name Before tar Happens
Bash
Shell
Command Line
Tar
ssh script returns 255 error
Linux
Bash
Shell
Ssh
Fish equivalent of bash $(command) notation
Shell
Fish
Command Substitution
How can I pass variables from awk to a shell command?
Shell
Awk
Parameter Passing
GIT get the commit hash prior to a specific commit
Git
Shell
Centos
How to execute multiple queries using psql command from bash shell?
Database
Postgresql
Shell