Программирование в стандарте POSIX



Пример 6.58


if [ "`dirname $RAW`" = "/dev/raw" -a -f /dev/raw ]; then echo $" Please correct your /etc/sysconfig/rawdevices:" echo $" rawdevices are now located in the directory /dev/raw/ " echo $" If the command 'raw' still refers to /dev/raw as a file." echo $" you'll have to upgrade your util-linux package" exit fi

Листинг 6.58. Пример использования служебной программы dirname.

Закрыть окно






Содержание  Назад  Вперед