aboutsummaryrefslogtreecommitdiff
path: root/shell/utils
diff options
context:
space:
mode:
Diffstat (limited to 'shell/utils')
-rw-r--r--shell/utils4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/utils b/shell/utils
index 2c45194..49b1985 100644
--- a/shell/utils
+++ b/shell/utils
@@ -100,12 +100,12 @@ _sys_memory() {
_sys_load() {
# Works on BSD too, neat.
- uptime | sed -re's/^.*load averages?: ([0-9]+\.[0-9]+).*$/\1/g'
+ uptime | sed -E 's/^.*load averages?: ([0-9]+\.[0-9]+).*$/\1/g'
}
_sys_uptime() {
# Took awhile to figure out, but this works on BSD as well
- uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\1/g' -e's/^([^ ]+)[ ]*(.).*/\1\2/g'
+ uptime | sed -E -e's/^.*up[ ]+//g' -e's/^([^,]*),.*/\1/g' -e's/^([^ ]+)[ ]*(.).*/\1\2/g'
}