Unix command to view the end of a file

learn more… | top users | synonyms

4
votes
3answers
2k views

Tail multiple files while piping one of the files through grep

I want to use tail follow two log files, but one of the log files has too much data, so I want it filtered with grep. tail -f file1 file2|grep mySearch The issue with this is that both files are ...
8
votes
3answers
4k views

tail -f not tracking file changes

I was recently looking into using tail -f to monitor some text files like so: tail -f /var/sometext However, when I did some testing, it doesn't seem to work. What I did was I created a new file and ...
67
votes
2answers
11k views

Using watch with pipes

I'd like to run this command: watch -n 1 tail -n 200 log/site_dev.log | grep Doctrine But it does not run, because "I think" that the grep tries to run on the watch instead of the tail... Is there ...
3
votes
1answer
448 views

Tailing multiple files with less

I want to have the best of both worlds with tail and less. Following multiple files, like tail can, but also having the scrollable buffer of less. So, I tried: tail -f mylog1 mylog2 | less +F But ...
0
votes
4answers
1k views

Issues ending script with tail -f

I use the following script to restart a Java server running on a Solaris Sun 5.10 box... pkill -9 java nohup ./start_java.sh & tail -f smx.log I SSH to the box (using Putty) to run the ...
3
votes
3answers
4k views

multitail for Windows cmd/powershell?

Is there a program like multitail but for Windows cmd.exe or powershell (not GUI)?
19
votes
6answers
19k views

Windows XP equivalent of “tail -f”?

Is there way have windows XP show me updates to a log file as they happen? I'm thinking of something similar to tail -f <file path> in the linux realm.
0
votes
3answers
423 views

what does tail + number does? What about head

I just called this command ls -l | tail +3. Firstly, ls -s, produces 3 lines, adding piping strips first line and then prints each file names on a separate line. How does it do that? It doesn't make ...