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/’
A huge collection of tips – things I always forget and helping me and others to remember
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/’