was unexpected at this time
for %i in ... - для командной строкиfor %%i in ... - для BAT,CMD файлов
was unexpected at this time
for %i in ... - для командной строки# pacman -S man-pages-ru
Ubuntu$ sudo apt-get install manpages-ru
#!/bin/bash
LC_ALL=ru_RU.UTF-8 man $1
Делаем его исполняемым:
chmod +x ruman
alias ruman='LC_ALL=ru_RU.UTF-8 man'
ruman cp
KERNEL!="sd[a-z][0-9]", GOTO="auto_mount_end"
IMPORT{program}="/sbin/blkid -o udev -p %N"
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
ACTION=="add", RUN+="/bin/mkdir -p /mnt/%E{dir_name}", RUN+="/bin/mount -t auto -o rw,relatime,noexec,nodev /dev/%k /mnt/%E{dir_name}"
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /mnt/%E{dir_name}", RUN+="/bin/rmdir /mnt/%E{dir_name}"
LABEL="auto_mount_end"