Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
oriy committed Aug 10, 2018
0 parents commit c87db61
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.iml
*.ipr
*.iws
8 changes: 8 additions & 0 deletions Bash/read_server_ip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

echo -n "Type the IP address of the server and press [ENTER]:"
read ip_server
while [ $(echo ${ip_server} | egrep -c "10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}") -lt 1 ]
do
read -p "Retype the PRIVATE IP address of the server and press [ENTER]:" ip_server
done

0 comments on commit c87db61

Please sign in to comment.