[bash – sed] del begin to last space, show rest of space

cat as|sed -e ‘s/^.*\ \(.*\)$/\1/1’

 

to  search for last space, and swap it to begining

cat usercase_workingfile| grep “View top”|sed -e “s/^.*- \(.*\)<.*$/\1/”| sed -e ‘s/^\(.\{,25\}\).*$/\1/g’|sed -e ‘s/^\(.*\)\ \(.*\)$/\2 – \1/’

 

 


Comments are closed.