Record broadband IP address to file

xiaoxiao2021-03-06  14

#! / bin / sh / sbin / adsl-status | GREP "inet"> / tmp / txt1sed -e 's / [az |: | -] // g' / tmp / txt1> / tmp / txt2sed - e 's //(.*/) /(.*/) /(.*/ ]//1 /' / tmp / txt2> / TMP / TXT3SED -E 'S / " > // g '/ TMP / TXT3> / TMP / TXT4 // Put the IP address to the temporary file TXT4

// Define and output a = `CAT / TMP / TXT4`echo $ A

转载请注明原文地址:https://www.9cbs.com/read-48373.html

New Post(0)