exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
OR
exim -bp | exiqgrep -i | xargs exim -Mrm
sed -i 's/\r//' tomcat/conf/server.xml
#!/bin/bash
while [ true ]; do
ES_STATUS="$(curl -s -w '%{http_code}' --insecure --connect-timeout 5 --max-time 10 -o /dev/null --noproxy '*' 'http://10.10.11.1:9200/_cluster/health?wait_for_status=green&timeout=5s')";
if [ $ES_STATUS -eq "200" ]
then
break;
fi
echo 'waiting for elasticsearch';
sleep 5;
done;
< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-16};echo;
python3 -m json.tool file.json
In Python 3.5+ the JSON object is no longer sorted by default. To sort, add the --sort-keys flag to the end.
python3 -m json.tool --sort-keys
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no