Skip to content

Instantly share code, notes, and snippets.

@vovs03
Last active April 30, 2021 20:56
Show Gist options
  • Save vovs03/de900ded43495e29d3716918898c67f2 to your computer and use it in GitHub Desktop.
Save vovs03/de900ded43495e29d3716918898c67f2 to your computer and use it in GitHub Desktop.
Решено: Вывод значения переменной из строки (bash интерполяция)
#!/bin/bash
# file into directory was set as executable
##### $ sudo chmod +x ver.sh
app_ver="0.0.1"
app_name="Test_App_from_bash"
clear
echo "App version: $app_ver App: $app_name"
@vovs03
Copy link
Author

vovs03 commented Apr 30, 2021

Пробовал кавычки разные ставить (не вариант) (MacOs)

Ubuntu - ok!
http://tpcg.io/yb5Nhz2k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment