We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3ac4c5 + 90f423d commit 054a51fCopy full SHA for 054a51f
2 files changed
recipes/Bash/576676_How_detect_Linux_distributiinitd/recipe-576676.sh
@@ -0,0 +1,14 @@
1
+#!/bin/bash
2
+
3
+LSB=$( which lsb_release )
4
5
+if [[ ! ${LSB} ]]; then
6
7
+ echo "LSB is not installed. Unable to determine your distribution."
8
+ exit
9
10
+else
11
12
+ ${LSB} -a | grep -v LSB
13
14
+fi
recipes/Bash/578578_Get_external_IP/recipe-578578.sh
@@ -1,5 +1,5 @@
-wget -qO - http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
+wget -qO - http://icanhazip.com | grep ^
# or
-wget -qO - http://internet.yandex.ru | grep -oP 'IPv4:\s(\d+\.){3}\d+'
+lynx --dump http://icanhazip.com | grep ^ | head -1
-lynx --dump http://internet.yandex.ru | grep IPv4 | awk '{print($2,$3)}'
+curl -s http://icanhazip.com | grep ^
0 commit comments