Содержит ли одна строка другую в рыбной раковине?

вы должны удалить xorg и файлы из fglrx в xorg.d

1
07.03.2019, 16:46
1 ответ

Мне кажется, для этой цели есть stringфункция:

$ set STRING something here
$ string match -q "other_string" $STRING; and echo yes
$ set STRING some other_string here
$ string match -q "other_string" $STRING; and echo yes
yes

или:

if string match -q "other_string" $STRING
  echo it matches
else
  echo is does not match
end
9
27.01.2020, 23:18

Теги

Похожие вопросы