apologies for a basic question using sed, I have been trying to work it out but my brain fails me...
I am trying to extract the text between two slashes within some unix shell.
I would like to extract the text between the 3rd and 4th slash (DEV). I have been trying to contruct the the following but without success..
echo "/share/test/DEV/2021-05-21/out/9988776_948016287_1.PDF" |
sed 's|\(.3\)/.4|\1|'
Any help greatly appreciated.
Many thanks M