Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I using a line like this to search for a bunch of files:

find . -name "page.php

The results are hundreds of lines and I can't see it all. (I'm trying to just copy/paste it into excel to analyze it).

I tried this:

find . -name "index1.php | less

That did something, but I was in this screen that I couldn't figure out how to exit out of. I had to close putty and open it up again.

What is the best way to just limit the results to the viewable area so I can copy, then hit return and get the next group.

Or, is there a way to make putty not truncate the results?

Thanks in advance.

share|improve this question

migrated from serverfault.com Feb 12 '13 at 3:05

This question came from our site for system and network administrators.

BTW q is the keyboard command to quit less – DerfK Feb 11 '13 at 23:46
If you want a less alternative that requires you to just hit enter, that's more... but a larger scrollback buffer, or redirect to file, or learn how to use less sounds more like what you really want... – frostschutz Feb 12 '13 at 3:11
up vote 5 down vote accepted

You want to get this into Excel? Why copy and paste?

find . -name "index1.php" > out.txt

Copy out.txt to your Excel machine (SCP is the easiest way), open it up.

share|improve this answer
Rename it out.csv, though, so that Excel will open it automagically. – Michael Hampton Feb 12 '13 at 2:06

I think what you're looking for is:

find . -name "page.php" > some_file_name.txt

This will redirect the output to some_file_name.txt which you can name what you please.

share|improve this answer

In the PuTTY configuration, under the "Window" category there is a "Lines of Scrollback" option. Set this to a sufficiently huge number.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.