Let's say the input is something like this:
/dev/sda1 something something word word /dev/sda4/ something word word
I want to achieve this output using grep:
/dev/sda1 /dev/sda4
I currently have this: grep -o "\/dev\/"
, but it only prints /dev/, and not the rest of the word.