Hi, do You need to edit the output? Redirect it to some tempfile and edit it,
Otherwise view it with less, like in
or view it continuously with less,
And there are more ways... Your example doesn't work because You pipe the output of tail to small_file and Your shell believes that to be a command, but I guess it isn't. I think a redirection is what You want.
Hi! I have a large set of pairs of text files (each pair in their own subdirectory) and each pair shares head/tail (a couple of first and last lines) but differs in the middle part. I need to delete the heads/tails and keep only the middle portions in which they differ. The lengths of heads/tails... (1 Reply)
Hi,
I have a server, which has more than of 1000 ip address, but only 500 ip address are responding in the Server. Here below the error message received while restarting the named
Sep 22 00:25:00 ns2 named: creating IPv4 interface eth0:595 failed;
interface ignored
Sep 22 00:25:00 ns2... (5 Replies)
I have a log file that is about 1.2 million lines long and about 300MB.
we need a way to clean up this file and only keep the last few thousand lines.
if i use tail command we run our of memory as the file is too big.
I do have a key word to match on.
example, we want to keep every line... (8 Replies)
I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250.
I would like to join all 250 of them together tail by tail as follows. For example
stat.1000
a b c
d e f
stat.1001
g h i
j k l
So that my output... (2 Replies)
Hi All,
I want to write a script which first check the line counts of a file if its more than 500 it deletes rest except the last 500..
I tried sed but it looks sed counts line numbers from the head & not from tail.. May be I need a wc -l frist then apply if statement & pass on the line count... (17 Replies)
Hello,
I need to tail -f a file output stream and I need to get only lines that contains "get" and "point" in the same line. It doesn't matter the order.
Then I need only the text BEFORE "point".
I have to count each line and perform other serveral actions after this has performed 3 times.... (9 Replies)
Discussion started by: Kibou
9 Replies
LEARN ABOUT DEBIAN
inotail
INOTAIL(1) Inotify enhanced tail INOTAIL(1)NAME
inotail - A fast and lightweight version of tail using inotify
SYNOPSIS
inotail [OPTION]... [FILE]...
DESCRIPTION
inotail is a replacement for the 'tail' program found in the base installation of every Linux/UNIX system. It makes use of the inotify in-
frastructure in recent versions of the Linux kernel to speed up tailing files in the follow mode (the '-f' option). Standard tail polls the
file every second by default while inotail listens to special events sent by the kernel through the inotify API to determine whether a file
needs to be reread. Note: inotail will not work on systems running a kernel without inotify. To enable inotify, please set CONFIG_INOTIFY=y
in your Linux kernel configuration and recompile it.
Currently inotail is not fully compatible to neither POSIX or GNU tail but might be in the future.
OPTIONS -c N, --bytes=N
output the last N bytes. If the first character of N is a '+', begin printing with the Nth character from the start of each file.
-f, --follow
keep the file(s) open and print appended data as the file grows
-n N, --lines=N
output the last N lines (default: 10) If the first character of N is a '+', begin printing with the Nth line from the start of each
file.
-v, --verbose
print headers with file names
-h, --help
show help and exit
-V, --version
show inotail version and exit
AUTHOR
Written by Tobias Klauser <tklauser@distanz.ch>
SEE ALSO tail(1), inotify(7)
2006-08-13 INOTAIL(1)