Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    $\begingroup$ take WReaches module: myFunction[file_]:=Module[...] then make a list of your files: ls = FileNames["*.csv", "/path/to/files", 2] and then map that list onto your function to get the last line from all files. Then you can save this to a new files. You can also join the files names to the output so that each last line is associated with its filename. $\endgroup$ Commented Jul 22, 2014 at 5:51
  • $\begingroup$ You may also refer to this. $\endgroup$ Commented Jul 22, 2014 at 7:46
  • 1
    $\begingroup$ You can even make a palette! (OK I guess it won't work with hundreds of files, but self-promotion is self-promotion) $\endgroup$ Commented Jul 22, 2014 at 11:20