1.

Solve : How to move content of one file to another?

Answer»

i WANT to MOVE specific lines of one file to another file. is there any way to do that using DOS commands?be more specific. how do you find those lines, by pattern search? by line NUMBERS? if its simple pattern search, you can use findstr. see findstr /? on the command prompt for more.
Code: [Select]findstr "some pattern" file > new file
if its line numbers, you can set up a for loop and a counter to loop over the file, incrementing the counter as you go, then PRINT the line when your number is reached.



Discussion

No Comment Found