Skip to content

Commit

Permalink
try to generalize some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cl4u2 committed Jun 27, 2013
1 parent c5e7caa commit ebaf0a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crawl.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

NINUXOO_DIR=/opt/ninuxoo/ninuu
NINUXOO_DIR=/home/user/ninuxoo

cd $NINUXOO_DIR
${NINUXOO_DIR}/getprefixesfromroutingtable.sh > ${NINUXOO_DIR}/IpPrefixes.txt && time python crawler.py;
Expand Down
3 changes: 2 additions & 1 deletion getprefixesfromroutingtable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
TABLE=main

ip route sh table 222 | cut -d "/" -f 1 | cut -d "." -f "1-3" | sort | uniq | sed "s/$/./" | sort -R
ip route sh table $TABLE | cut -d "/" -f 1 | cut -d "." -f "1-3" | sort | uniq | sed "s/$/./" | sort -R

0 comments on commit ebaf0a8

Please sign in to comment.