Re: Newbie Tcl Question
khannu@xxxxxxxxx wrote:
Hello,
In Tcl, how can I extract the file name from a string that contains
the fullpath to the file, like so: C:\results\log\file.txt
How can I retrieve the 'file.txt' substring from the above string?
Read the man/help page on the file command, pay particular attention to the
tail subcommand.
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
Relevant Pages
- Re: How do I pull the info from this PostScript?
... Do you just want to extract the title from a file, ... When anchorsearch returns true, the 'post' string ... SourceArrayDecode filter from the array, and cvx exec the filter. ... (comp.lang.postscript) - Re: Newbie: Array of pointers to strings questions.
... > What I'm trying to do is extract information from one file and insert ... The first file has a string of ... > char *ptr; ... line1 is just a constant pointer to a character. ... (comp.lang.c) - Split Single Address Field into Component Parts
... would make a copy of the database before making any ... would subtract that part of the string from the working ... I ran an update query to extract the portion of the ... (microsoft.public.access.queries) - Split Single Address Field into Component Parts
... >address field using an update query. ... >string functions. ... I ran an update query to extract the portion of the ... (microsoft.public.access.queries) - Re: Help With Regular Expression (Another Post)
... How can I extract the State from the path and set that to a variable. ... Elseif s="Florida" Then ... 'if function returns an empty string then it means that no applicable state ... dim vState as Variant ... (microsoft.public.vb.general.discussion) |
|