Sunday, March 04, 2018

Wget With Proxy and Egrep

use -e for wget to use proxy

wget "https://rpmfind.net/linux/centos/7.4.1708/extras/x86_64/Packages/python2-jmespath-0.9.0-3.el7.noarch.rpm" -e  use_proxy=yes -e https_proxy=testproxy.test.com:80

egrep -v 'str one|str two' test.log

ps -few|grep pmon|egrep -v 'grep|MGM'|awk -F" " '{print $8}'|cut -d_ -f3

 

No comments: