06-02-2020, 16:12 +0200
Vylhan09-18-2009, 21:48   | bash -> tcl

wie bekomm ich diese Zeile in TCL umgewandelt?

sed  's/^.*:\/\/\([^\/]*\).*$/\1/' <<< "http://asd.fgh.jkl.asdfgh.abc/blubber/di/blub.html"

wäre schön wenn wer kurz Zeit dafür findet.

CyBex  09-19-2009, 01:47   Jabber  ICQ  AOL IM  Yahoo IM  MSN  Homepage
nie da


Member since 01/2004
260 Posts
Location: Berlin
regexp {^.*://([^/]+)/} "http://asd.fgh.jkl.asdfgh.abc/blubber/di/blub.html" "" newvar; # und ist dann in $newvar

mfG CyBex @ QuakeNet, UnderNet, EFNet, Freenode, euIRC, GameSurge & ShadowWorld - Files
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 165.8 msec, CPU time: 56.2 msec, 31 Database queries in 127.4 msec | 3.2 kB (11.5 kB) | Timezone: +0200