OPNsense Forum

English Forums => Development and Code Review => Topic started by: MasterXBKC on July 03, 2017, 07:08:04 pm

Title: Development Notes - Sharing
Post by: MasterXBKC on July 03, 2017, 07:08:04 pm
This is a spot i will share usefull random tidbits of code found or made from my development on opnsense.

How to get human friendly uptime from opnsense
Code: [Select]
uptime | awk -F'( |,|:)+' '{print $4,$5",",$6,"hours,",$7,"minutes."}'
4 days, 12 hours, 09 minutes.