|
Post by edinburghstokie on Apr 19, 2008 10:58:18 GMT
Does anyone know of a way of merging a large number of similar files into one long list?
I have 100+ files with several lines of text and numbers, (not a *.txt file) and want all the numbers on one file so I can make suitable graphs of changing variables.
I have tried google, but none of the programs I found seem to be appropriate.
Any help appreciated.
|
|
|
Post by Zippy Moon Dust on Apr 19, 2008 11:29:28 GMT
How computer literate are you? Just go to "Start" > "Run" > type "cmd" and use the copy function. from www.stu.qmul.ac.uk/primer/dos/dos_t.htm"COPY Make a copy of a file or merge files together.
COPY original-file destination-file
where original-file and destination-file are file names, separated by a space.
The command can be used to merge several files into one file since the original-file parameter can be a list of filenames separated by the + symbol. For example:
COPY file1 + file2 file3
would copy file1 and file2 into file3.
Note that the file names used in the copy command must include the file extension if it exists. So if you were copying a fortran program called first.for, for example, you would need to include the .for extension in the filename."It's a bit tedious but if you can write batch files it shouldn't take long Again going into DOS this would be useful (this just assumes your file are on C:) Just use CD to navigate to your folder. Open a command prompt and cd to the folder. Then, type:dir > c:\list.txt
This will create a file in the root of C: which contains the names of the files. Or
dir /b>c:\list.txt
for a list of just file names.
Use Notepad ++ to edit. They're maybe easier ways as someone will probably point out
|
|
|
Post by edinburghstokie on Apr 19, 2008 11:58:30 GMT
cheers zippy, I will have a bash at it. Just done the first 100 files by hand, in winedt, but it was bloody tedious and open to sloppy mistakes. Got several more batches to do whilst waiting fro K.O.
|
|