$ LINE="zh_SG GB2312"
$ eval $(echo "$LINE" | awk '{print "var1="$1";var2="$2}')
получим:$ echo "$var1 $var2"
zh_SG GB2312
ru_RU.UTF-8 UTF-8
en_US.UTF-8 UTF-8
zh_SG GB2312
$ lines=(`cat lines.txt`)
$ echo ${lines[0]}
ru_RU.UTF-8
$ echo ${lines[1]}
UTF-8
$ bash --version
GNU bash, версия 5.1.4(1)-release (x86_64-pc-linux-gnu)
...
$ ./untitled.sh 1 1 1 1
script4 - Linux Scripting Book
Parameters: 1 1 1 1
Showing logical AND
Clause 1
Showing logical OR
Clause 1
End of script4
#!/bin/bash
I suggest to remove in the following way, the most appropriate and safe way without removing many dependencies is:
sudo rpm -e --nodeps mysql-community-libs mysql-community-common mysql-community-server
pacman -Syu libreoffice-fresh libreoffice-fresh-ru
pacman -Syu libreoffice-still libreoffice-still-ru
pacman -R libreoffice-fresh libreoffice-fresh-ru
pacman -R libreoffice-still libreoffice-still-ru
Удалить Libre Office тоже не могу, ни одна команда удаления не исполняется.
cat /var/log/pacman.log| grep libreoffice
## Russia
#Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
#Server = https://mirror.truenetwork.ru/archlinux/$repo/os/$arch
Server = https://mirror.yandex.ru/archlinux/$repo/os/$arch
sudo pacman -Syyu
CMainApplication::BInit - Unable to initialize Vulkan!
SDL_VIDEODRIVER=x11 steam
pacstrap /mnt base linux linux-firmware
также заодно заказал оперативку на DDR4, она еще не пришла.
При попытке воспроизвести видео на ютубе все еле дергалось...
GDM (optional, but useful)
if [[ -z $DISPLAY && $XDG_SESSION_TYPE == tty ]]; then
case "$(tty)" in
"/dev/tty1" ) # Sway wayland
QT_QPA_PLATFORM=wayland \
CLUTTER_BACKEND=wayland \
MOZ_ENABLE_WAYLAND=1 \
SDL_VIDEODRIVER=wayland \
XDG_SESSION_TYPE=wayland \
BEMENU_BACKEND=wayland \
XKB_DEFAULT_LAYOUT=us \
exec sway
;;
"/dev/tty2" ) # i3 X
startx /usr/bin/i3
;;
"/dev/tty3" ) # Gnome wayland
QT_QPA_PLATFORM=wayland \
CLUTTER_BACKEND=wayland \
MOZ_ENABLE_WAYLAND=1 \
SDL_VIDEODRIVER=wayland \
XDG_SESSION_TYPE=wayland \
exec dbus-run-session gnome-session
;;
esac
fi
ls -1 |awk '{print $0,$0"_renamed"}' | xargs -n2 mv
ls -1 |awk '{print "\""$0"\" \""$0"_renamed\""}' | xargs -n2 mv