I need to extract similar patterns from data below. The pattern starts with '.' or '' then to the keyword I want, then followed by ''. We can assume the format is
/home/mobaxterm/Data/FW/FW3/FW.3.1/releases/patch_PCRF-17717B1.jar,patch_PCRF-17717B1.jar,yschew,2015-10-21 11:31:58.000000000,patch /home/mobaxterm/Data/FW/FW9/CW.1/releases/D/patch_FW_9.3.1.LSUFE-583B1_i86pc.jar,patch_FW_9.3.1.LSUFE-583B1_i86pc.jar,yschew,2015-10-21 11:31:58.000000000,patch,i86pc
I have tried using answer from https://stackoverflow.com/questions/8777901/extract-specific-words-from-a-line
sed -r 's/.*LSUFE-(\S+).*/\1/'
but it didn't work, all I got is a blank screen. Right now what I am thinking is doing something similar like this
sed -e 's/LSUFE-*/,/\_/' output.txt
but of course, I didn't get it to work, my idea is doing it 1 by 1 for each pattern, read from the matching pattern until it encounters an underscore.