On Thu, 2009-08-06 12:59:42 +0200, Marco Wiese <[email protected]> wrote:
> Nun brauche ich davon aber immer nur den String nach dem letzten "/". Die 
> Länge ist allerdings variabel, so dass ich nciht weiß, wieviel Slashes 
> enthalten sind. Weiß jemand Rat, wie ich an den letzten Schtring komme???

jbg...@bixie:~$ echo 1/2/3/444 | sed -e 's#^.*/\([^/]\+\)$#\1#'
444

MfG, JBG

-- 
      Jan-Benedict Glaw      [email protected]              +49-172-7608481
  Signature of:                           Wenn ich wach bin, träume ich.
  the second  :

Attachment: signature.asc
Description: Digital signature

--
Linux mailing list [email protected]
subscribe/unsubscribe: http://lug-owl.de/mailman/listinfo/linux
Hinweise zur Nutzung: http://www.lug-owl.de/Mailingliste/hints.epo

Antwort per Email an