1 parent c93b31a commit 1a405acCopy full SHA for 1a405ac
1 file changed
hosts.sh
@@ -1,6 +1,9 @@
1
#!/bin/bash
2
3
in=$1
4
+temp=temp.$1
5
out=hosts.$1
6
-dig -f $in +noall +short | tee -a $out
7
+dig -f $in +noall +short | tee -a $temp && \
8
+sort -u $temp > $out && \
9
+rm $temp
0 commit comments