Easy way to find start of string

This commit is contained in:
Dylan 2016-04-29 10:00:48 +10:00
parent 382a018fb4
commit 9871e65148

View file

@ -590,11 +590,11 @@ getuptime () {
hours=$((uptime / 3600%24)) hours=$((uptime / 3600%24))
days=$((uptime / 86400)) days=$((uptime / 86400))
days="$days days," days=" $days days,"
hours="$hours hours," hours=" $hours hours,"
mins="$mins minutes" mins=" $mins minutes"
uptime="up ${days/0 days,} ${hours/0 hours,} ${mins/0 minutes}" uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}"
;; ;;
esac esac