Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 36 Posts 16 Joined 2007-03-31 14:14 19-year member UID 83517 Gender Male
Status Offline
I want to implement the following:
for /f "delims=" %%i in (list.txt) do echo .......
list.txt:
d:\aaa\ccc
d:\sfks\ksj
e:\ttt
What I want is to take the content after the last \ in each line that is read, like this:
ccc d:\aaa\ccc
ksj d:\sfks\ksj
ttt e:\ttt
Asking any expert who knows to help