IP Suche mit regex bei weg.

Etwas aufgeraeumt und die Millionen Leerzeichen raus.
Space -> Tab
This commit is contained in:
Robert Langhammer 2018-10-25 23:33:01 +02:00
parent 1d0e47bd65
commit 73c7ba8250
1 changed files with 67 additions and 67 deletions

View File

@ -87,18 +87,19 @@ if ! [ ${GET_routes} ] && ! [ ${GET_v4table} ] && ! [ ${GET_v6table} ] && ! [ ${
echo "<br>"
done
%>
<%
fi
if [ ${GET_routes} ]; then
%>
<H2>All routes</H2>
<%
echo "$data" | grep route | grep -v xroute | while read line ; do
echo "$data" | grep -w route | while read line ; do
echo $line
echo "<br>"
done
fi
if [ ${GET_v4table} ]; then
%>
<H2>Show IPv6 Routing Tabele</H2>
@ -125,8 +126,7 @@ if [ ${GET_weg} ]; then
%>
<H2>Wege zu <%# echo ${GET_ip} %></H2>
<%
v6routen=$(ip -6 ro sh tab 10)
echo "$v6routen" | while read line ; do
echo "$data" | grep -w route | grep "${GET_ip}" | while read line ; do
echo $line
echo "<br>"
done