Инструменты пользователя

Инструменты сайта


os:linux:utils

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
os:linux:utils [18.03.2025 19:48] – [read] viacheslavos:linux:utils [18.03.2025 19:48] (текущий) – [read] viacheslav
Строка 555: Строка 555:
  
 # Разделить строку на 2 части # Разделить строку на 2 части
-$ i="v2.2.187 #3826893 Very important commit, absolutely brilliant"+$ i="v2.2.187 3826893 Very important commit, absolutely brilliant"
 $ read -r tag description <<< $i $ read -r tag description <<< $i
 $ echo $tag $ echo $tag
 v2.2.187 v2.2.187
 $ echo $description $ echo $description
-#3826893 Very important commit, absolutely brilliant+3826893 Very important commit, absolutely brilliant
 </code> </code>
 [[https://stackoverflow.com/questions/10520623/how-to-split-one-string-into-multiple-variables-in-bash-shell|How to split one string into multiple variables in bash shell]] [[https://stackoverflow.com/questions/10520623/how-to-split-one-string-into-multiple-variables-in-bash-shell|How to split one string into multiple variables in bash shell]]
os/linux/utils.1742327303.txt.gz · Последнее изменение: 18.03.2025 19:48 — viacheslav

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki