Операционная система Linux


Пример 8.18


[methody@localhost methody]$ for Var in Wuff-Wuff

Miaou-Miaou; do echo $Var; done

Wuff-Wuff

Miaou-Miaou

[methody@localhost methody]$ for F in `date`; do echo -n "<$F>"; done; echo

<Сбт><Ноя><6><12:08:38><2004>

[methody@localhost methody]$ cat > /tmp/setvar

QWERTY="$1"

[methody@localhost methody]$ sh /tmp/setvar 1 2 3; echo $QWERTY

[methody@localhost methody]$ . /tmp/setvar 1 2 3; echo $QWERTY

1




Начало  Назад  Вперед



Книжный магазин