
-
Query a List of Hostnames to Create /etc/hosts File
for x in `cat hostnames`; do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x ; done >> hostfile Or, add SHORTNAME…
-
Sanitize EMCgrabs
Script which is meant to run from a directory containing compressed/encapsulated EMCgrabs either from ESX or linux hosts. # Removes hostnames…
-
Because I always forget how to increment
for x in {0..16} ; do cp -R file file$x ; done
- Post a new comment
- 0 comments
- Post a new comment
- 0 comments