[Chicago-talk] Probably and easy explanation I'm missing...

tiger peng tigerpeng2001 at yahoo.com
Thu Aug 24 14:18:23 PDT 2006


> s/.+\\([^\\]+)$|.+\/([^\/]+)$/$1/;

May be it try to say:

s/.*\\([^\\]+)$|.*\/([^\/]+)$/$1?$1:$2/e

Replace the whole line with the last field if the line
contain '/' or '\' functions as field separator.



More information about the Chicago-talk mailing list