CONTENT
  • CHANGES
Szukaj
counter

#top eval


eval - BASH_BUILTINS

Powiązane:
eval, set, trap,

SYNOPSIS
eval [arg ...]



DESCRIPTION
The args are read and concatenated together into a single command. This command is then read and executed by the shell, and its exit status is returned as the value of eval. If there are no args, or only null arguments, eval returns 0.



EXAMPLES
wget -O - 'http://example.com/cgi-bin/printenv'
# QUERY_STRING=""

wget -O - 'http://example.com/cgi-bin/printenv?a=1&b=2&c=3'
# QUERY_STRING="a=1&b=2&c=3"
eval `echo $QUERY_STRING | tr '&' ' '`
echo "a=$a" # a=1
echo "b=$b" # b=2
echo "c=$c" # c=3




Zmodyfikowany ostatnio: 2017/12/02 15:14:32 (6 lat temu), textsize: 943 B, htmlsize: 1,43 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników