I'm using uptime and a few random
unxutils tools to get uptime - the idea being that if it works here, I can use the same basic design for arbitrary information tools without needing to learn a 'grown up' scripting language. I do want it to be human readable so I want to crop out, and add in certain things.
What I need to do is, for example, insert
"the uptime for " in front of the output for
uptime|cut -c 3- so I get
"uptime for computername is 1 day<s>" as an output.
Considering I'm already using two non standard tools, ideally, I'd like it to be using stuff that's native or in
unxutils, but i can adjust as needed.
EDIT: using zsh is not an option - i need the output to work on the standard cmd shell.
Edit 2: I'm using windows, as per the tags. also, added a link to ms's implimentation of uptime. also corrected an error in my 'cut' command -