grep might not be the solution to what I need. I'm trying to grab the MB/s info from this command dd if=/dev/zero of=tempfile bs=1M count=1024
which returns the following information
1024+0 records in
1024+0 records out
xamount bytes(1.1GB) copied, 11.234 s, 30.5 MB/s
what I tried was dd if=/dev/zero of=tempfile bs=1M count=1024|grep -oP '.....MB/s
but I'm fairly new to the grep command and I'm sure I'm doing it wrong. also this is on centOS