OrderSomewhereChaos   
  

Wiki Home

List New Updates

Find Page

Back To
The Web Site

Back To
The Journal


 

 


Wiki: Geek Tool Codes

printf "Date: "; date; printf "Uptm: "; uptime | awk '{print "" $3 " " $4 " " $5 }' | sed -e 's/.$//g';

cal $(date -v -1m "+%m %Y"); echo " "; echo " "; cal $(date "+%m %Y"); echo " "; cal $(date -v +1m "+%m %Y")

printf "External IP: "; curl -s http://icanhazip.com; printf "Internal IP: "; ifconfig | grep 'broadcast' | awk '{print $2}';

df -hl | grep 'disk0s5' | awk '{print "Finn: "$4"/"$2" free ("$5" used)"}'; df -hl | grep 'disk0s3' | awk '{print "Case: "$4"/"$2" free ("$5" used)"}'; df -hl | grep 'disk0s7' | awk '{print "Molly: "$4"/"$2" free ("$5" used)"}';

This one no longer works:

curl -s http://www.wunderground.com/cgi-bin/findweather/getForecast?query=12345 | awk '/Today is/ || /Tomorrow is/' | textutil -convert txt -stdin -stdout -format html;



-- Last edited February 10, 2016
- Click any question mark to add a new page.

Search on: Geek Tool Codes


 

 

     
 

Menu

Notes Mode Ghia Mac Mail Up Home