Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in bash

What's a concise way to check that environment variables are set in a Unix shell script?

bash unix shell

How to zero pad a sequence of integers in bash so that all have the same width?

bash numbers padding

Aborting a shell script if any command returns a non-zero value

linux bash unix shell

How to have the cp command create any necessary folders for copying a file to a destination [duplicate]

linux bash cp

How to return a string value from a Bash function

How to get a password from a shell script without echoing

bash shell scripting sh

How do I rename the extension for a bunch of files?

bash rename file-rename

Length of string in bash

Expansion of variables inside single quotes in a command in Bash

bash shell variables quotes

find -exec with multiple commands

bash find

Process all arguments except the first one (in a bash script)

bash shell

Multi-line string with extra space (preserved indentation)

string bash shell echo

Why is whitespace sometimes needed around metacharacters?

bash shell syntax syntax-error

How to run a shell script on a Unix console or Mac terminal?

linux bash macos shell unix

How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?

bash shell path

ls command: how can I get a recursive full-path listing, one line per file?

bash command-line find ls

Bash script and /bin/bash^M: bad interpreter: No such file or directory [duplicate]

bash

Ternary operator (?:) in Bash

Why do you need to put #!/bin/bash at the beginning of a script file?

linux bash scripting shebang

How to do a logical OR operation for integer comparison in shell scripting?

bash unix if-statement sh