index

Recherche

Voici les résultats de votre recherche.

positional-parameters
14 Occurrences trouvées, Dernière modification :
ript__ - it just echos ''$0'': <code> #!/bin/bash echo "$0" </code> You see, ''$0'' is always set to the... wever, this isn't true for login shells: <code> > echo "$0" -bash </code> In other terms, ''$0'' is not... to access specific parameters: <code> #!/bin/bash echo "Total number of arguments: $#" echo "Argument 1: $1" echo "Argument 2: $2" echo "Argument 3: $3" echo
quoting
9 Occurrences trouvées, Dernière modification :
ve a special meaning using the backslash: <code> echo \$HOME is set to \"$HOME\" </code> * ''\$HOME''... ve a file named ''*'', spit out an error. <code> echo "Your PATH is: $PATH" </code> Will work as expect... the single-quote that closes the string. <code> echo 'Your PATH is: $PATH' </code> ''$PATH'' won't be ... iki>'</nowiki>''" as literal text: <code> # WRONG echo 'Here's my test...' # RIGHT echo 'Here'\''s my t
redirection
8 Occurrences trouvées, Dernière modification :
the descriptor number: <code> # this executes the echo-command and redirects its normal output (stdout) to the standard error target echo "There was an error" 1>&2 </code> The redirectio... e it), this is **the wrong way**: <code bash> # { echo OUTPUT; echo ERRORS >&2; } is to simulate something that outputs to STDOUT and STDERR # you can test wi
check-script
3 Occurrences trouvées, Dernière modification :
f [ -z "$1" ] then DIR=./ else DIR=$1 fi echo "Evaluate *.py statistics" FILES=$(find $DIR -nam... DIR -name '*.py' -print0 | xargs -0 cat) | wc -l) echo "PYTHON FILES: $FILES" echo "PYTHON LINES: $LINES" </sxh> This script evaluate the number of pytho
obsolete
3 Occurrences trouvées, Dernière modification :
ion]]<code bash> $ { bash; dash </dev/fd/0; } <<<'echo foo>/dev/null&>/dev/fd/2 echo bar' foo echo bar bar</code>| |''$[EXPRESSION]'' |''<nowiki>$((EXPRESSION))</nowiki>'' |This undocume
  • index.txt
  • Dernière modification : 2022/11/08 16:43
  • de 127.0.0.1