How to remove last character only if it's there?
OpenOffice.org/m openOffice.org/ozm Pers. Pfg. phil. Prof. resp. Roonstr./m roonstr./ozm
OpenOffice.org openOffice.org Pers Pfg phil Prof resp Roonstr roonstr
I got it so far that only the dot is left but unfortunately the last sed command removes also letter
$ cat filename | grep "\." | cut -d"/" -f1 | sed 's/.$//'