Hi, On Sun, Jan 19, 2014 at 06:05:22PM +0400, belka wrote: > Здравствуйте всем > может кто нибуть обьяснит мне что я делаю не так ? Зависит от того, какую задачу вы решаете. > обнаружил что то странное при парсинге xml файла Парсинг xml тут не причем. > [belka@home newfolder]$ ls > file1  file2  file.xml > [belka@home newfolder]$ cat ./file.xml > > > [belka@home newfolder]$ echo "cat /root/messages/message/text/text()" | xmllint --nocdata --shell file.xml  | sed '1d;$d' > * > [belka@home newfolder]$ text="$(echo "cat /root/messages/message/text/text()" | xmllint --nocdata --shell file.xml  | sed '1d;$d' )" > [belka@home newfolder]$ echo $text > file1 file2 file.xml > [belka@home newfolder]$ Эквивалентный пример без xmllint: $ ls file1  file2  file.xml $ echo "*" * $ text="$(echo "*")" $ echo $text file1  file2  file.xml $ echo "$text" * Согласно bash(1), "Expansion is performed on the command line after it has been split into words. [...] The order of expansions is: brace expansion, tilde expansion, parameter, variable and arithmetic expansion and command substitution (done in a left-to-right fashion), word splitting, and pathname expansion." -- ldv