Extract text from txt list with command prompt Windows
I have a list in a txt like this
AAA 1234561
BBB12 66698732
CCCCC 5878471
DD131 262554158
and and I have a Directory like the below
DirectoryA/AAA
DirectoryA/BBB12
DirectoryA/CCCCC
DirectoryA/DD131
I want to create a txt file with a give name lets call it id.txt which
contains the respective code for its folder
So the DirectoryA/AAA/id.txt contains 1234561
DirectoryA/BBB12/id.txt contains 66698732 and so on.
I tried to extract the line with /p but it copies the whole line not just
the ID.
No comments:
Post a Comment