tail
Haskell tail-recursion performance question for Levenshtein distances
I\'m playing around with calculating Levenshtein distances in Haskell, and am a little frustrated with the following performance problem.If you implement it most \'normal\' way for Haskell, like below[详细]
2023-01-18 10:21 分类:问答How can I remove all but the last 10 lines from a file?
Is it possible to keep only t开发者_如何学编程he last 10 lines of a lines with a simple shell command?[详细]
2023-01-17 18:35 分类:问答Is there an equivalent of `tail -f` in Perl?
I\'m writing a script that listens for changes to a log file and acts appropriately. At the moment I\'m using open my $fh, \"tail -f $logfile |\";开发者_Go百科 but ideally I don\'t want to use system[详细]
2023-01-15 07:33 分类:问答How do I execute a Perl program on a remote machine?
I wrote a Perl program to capture a live data stream from a tail command on a Linux machine using the following command in the console:[详细]
2023-01-12 08:58 分类:问答What's the opposite of head? I want all but the first N lines of a file
Given a text file of unknown length, how can I read, for example all but the first 2 lines of the file? I know tail will give me the last N lines, but I don\'t know what N is ahead of time.[详细]
2023-01-11 20:09 分类:问答How do I process captured output from `tail` without reprocessing?
I want to excecute a tail command in Unix for indefinite time and capture its output in a Perl script, process it and store certain data into a database. But it should be live, meaning old data – onc[详细]
2023-01-09 02:55 分类:问答Best way to split several heads from a list with Erlang?
So, Erlang is a real joy to work with, but there\'s one problem I run into occasionally, that I\'m wondering if there is a nicer way to solve. Often, I find myself needing to split several items from[详细]
2023-01-08 09:39 分类:问答Tailing 'Jobs' with Perl under mod_perl
I\'ve got this project running under mod_perl shows some information on a host. On this page is a text box with a dropdown that allows users to ping/nslookup/traceroute the host. The output is shown i[详细]
2022-12-31 20:50 分类:问答Tailing a binary file in Erlang adds mysterious bit-string
I want to run tail on a named pipe to facilitate some binary logfile processing. The problem is that mysterious data is being added to the beginning of the stream. I run my tests by starting the erlan[详细]
2022-12-28 17:39 分类:问答Implement "tail -f" in C++
I want to create a small code in C++ with the same functionality as \"tail-f\": watch for new lines in a text file and show them in the standard output.[详细]
2022-12-28 10:06 分类:问答