I have this small script to test a FTP site:
#!/bin/bash wget -O /dev/null ftp://someftpsite:[email protected]/testdump300 2>&1 | \ grep '\([0-9.]\+ [M]B/s\)' >> wget300.log And it shows output like this:
2018-07-26 22:30:06 (22.7 MB/s) - '/dev/null' saved [104857600] Ok, and now I just want to have it like this:
2018-07-26 22:30:06 22.7 Anyone who can help? I suspect I should use awk or sed?