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
1 changed files with 4 additions and 4 deletions

View File

@ -590,11 +590,11 @@ getuptime () {
hours=$((uptime / 3600%24))
days=$((uptime / 86400))
days="$days days,"
hours="$hours hours,"
mins="$mins minutes"
days=" $days days,"
hours=" $hours hours,"
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