Results 1 - 25 of about 35 results out of about 107434 pages. (0.06 seconds)
- BashPitfalls . . . 130 matches
- ...
= Bash Pitfalls =
This page is a compilation of common mistakes made by bash users. Each example is flawed in some way.
<<TableOfContents>>
<<Anchor(pf1)>>
== for f in $(ls *....
- BashGuide/Practices . . . 87 matches
- ...
[[BashGuide/JobControl|<- Job Control]]
----
<<TableOfContents>> <<Anchor(StartOfContent)>>
= Practices =
== Choose Your Shell ==
The first thing you should do before starting a...
- BashFAQ/006 . . . 84 matches
- ...ies", and in Java as a "Map", and in C++11 STL as `std::unordered_map`.
{{{#!highlight bash
# Bash 4 / ksh93
typeset -A homedir # Declare associative array
homedir=( ...
- BashGuide/CommandsAndArguments . . . 80 matches
- ...
[[BashGuide|<- Contents]] | [[BashGuide/SpecialCharacters|Special Characters ->]]
----
<<TableOfContents>>
<<Anchor(StartOfContent)>>
= Commands and Arguments =
[[BASH]] reads ...
- BashGuide/TestsAndConditionals . . . 64 matches
- ...
[[BashGuide/Patterns|<- Patterns]] | [[BashGuide/Arrays|Arrays ->]]
----
<<TableOfContents>> <<Anchor(StartOfContent)>>
= Tests and Conditionals =
Sequential execution of comman...
- BashGuide/InputAndOutput . . . 57 matches
- ...
[[BashGuide/TestsAndConditionals|<- Tests and Conditionals]] | [[BashGuide/CompoundCommands|Compound Commands ->]]
----
<<TableOfContents>>
<<Anchor(StartOfContent)>>
= Input And ...
- BashWeaknesses . . . 47 matches
- ...
There are certain things [[BASH]] is ''not'' very good at. There are certain tasks you shouldn't do in bash, unless you really, truly have to. It's often better to switch to a d...
- BashGuide/Parameters . . . 44 matches
- ...
[[BashGuide/SpecialCharacters|<- Special Characters]] | [[BashGuide/Patterns|Patterns ->]]
----
<<TableOfContents>> <<Anchor(StartOfContent)>>
= Parameters =
Parameters are a so...
- BashGuide/Arrays . . . 43 matches
- ...[[BashGuide/TestsAndConditionals|<- Tests and Conditionals]] | [[BashGuide/InputAndOutput|Input and Output ->]]
----
<<Anchor(StartOfContent)>>
= Arrays =
As mentioned earlier, [...
- BashFAQ/026 . . . 38 matches
- ... each line; then sorting the resulting lines, and removing the numbers.
{{{#!highlight bash
# Bash/Ksh
randomize() {
while IFS='' read -r l ; do printf '%d\t%s\n' "$RANDOM" "$...
- BashGuide/CompoundCommands . . . 36 matches
- ...[[BashGuide/InputAndOutput|<- Input and Output]] | [[BashGuide/Sourcing|Sourcing ->]]
----
<<TableOfContents>>
<<Anchor(StartOfContent)>>
= Compound Commands =
[[BASH]] offers n...
- BashGuide . . . 36 matches
- ...
[[BashGuide/CommandsAndArguments|Commands and Arguments ->]]
----
= Introduction =
'''You are invited to make additions or modifications so long as you can keep them accurate. P...
- BashFAQ/028 . . . 32 matches
- ...oblem instantly: you no longer depend on the "location" of your script:
{{{#!highlight bash
if [[ -e ~/.myscript.conf ]]; then
source ~/.myscript.conf
elif [[ -e /etc/myscript...
- BashGuide/Patterns . . . 28 matches
- ...
[[BashGuide/Parameters|<- Parameters]] | [[BashGuide/TestsAndConditionals|Tests and Conditionals ->]]
----
<<Anchor(StartOfContent)>>
= Patterns =
[[BASH]] offers three differen...
- FullBashGuide . . . 26 matches
- ... =
'''You are invited to make additions or modifications at http://mywiki.wooledge.org/BashGuide so long as you can keep them accurate. Please test any code samples you write.'''...
- BashFAQ/073 . . . 24 matches
- ...ortant subject. This page contains a concise overview of parameter expansion.
* The [[BashGuide/Parameters#Parameter_Expansion|Bash Guide]] includes an introduction for beginners...
- BashFAQ/031 . . . 22 matches
- ... evaluate expressions. `[[ ... ]]` works only in the Korn shell (where it originates), Bash, Zsh, and recent versions of Yash and busybox `sh` (if enabled at compilation time, and...
- BashFAQ/024 . . . 19 matches
- ... a separate SubShell. Non-working example:
{{{
# Works only in ksh88/ksh93, or zsh or bash 4.2 with lastpipe enabled
# In other shells, this will print 0
linecount=0
printf '%s\...
- FullBashFAQ . . . 15 matches
- ...
= BASH Frequently Asked Questions =
|| '''Note''': This version is the same as the BashFAQ page but with the full text of the faqs, it is much slower to load but it is easier to...
- BashFAQ . . . 15 matches
- ...
= BASH Frequently Asked Questions =
|| '''Note''': The FAQ was split into individual pages for easier editing. Also, for faster loading of this page, the answers are no longer ...
- BashLoadableBuiltins . . . 14 matches
- ...
[[BASH]] has the ability to load compiled modules to create new commands which interface with the operating system more directly than can be achieved by calling external commands....
- BashFAQ/017 . . . 13 matches
- ...able (POSIX or Bourne) way is to use multiple `test` (or `[`) commands:
{{{#!highlight bash
# Bourne
if commandA && commandB || commandC; then
...
# or with test(1) calls:
if [ t...
- BashFAQ/016 . . . 10 matches
- ...atch glob A ''or'' glob B, just put them both on the same command line:
{{{#!highlight bash
rm -- *.bak *.old
}}}
If you want to use a logical OR in just part of a glob (larger t...
- BashGuide/Sourcing . . . 9 matches
- ...[[BashGuide/CompoundCommands|<- Compound Commands]] | [[BashGuide/JobControl|Job Control ->]]
----
<<Anchor(StartOfContent)>>
= Sourcing =
When you call one script from another, t...
- BashFAQ/091 . . . 8 matches
- ...t the variables COLUMNS / LINES are always empty. ==
`COLUMNS` and `LINES` are set by [[BASH]] in interactive mode; they are not available by default in a script. On most systems,...