0

I have a project with a lot of files under /app. There are also subfolders with files. How can I print(hard copy) these files all out without manually printing each one?

Note: Not the file names. I want to print(hard copy) the contents of all files under /app

4

1 回答 1

3

Use find:

find /app

If you want print only directories, specify it with -type d (-type f to print files only):

find /app -type d

UPDATE

find /app -type f -print -exec cat {} \;

To get file hard copied, use lpr command:

find /app -type f -print -exec lpr {} \;
于 2013-09-18T15:21:22.587 回答