I'm getting into this bash programming thing, but I need some help from the programming gurus out there. I want to take the output of my uptime script Code: 20:07 up 1:01, 2 users, load averages: 0.36 0.17 0.14 and only use the text between 20:07 and , 2 users (ie. proper result is up 1:01) So far I have Code: uptime | grep '.*' . I've used grep with PHP before, but never anything like this. Suggestions?