Skip to main content
find . -name '*' -execdir cat '{}' \;
find . -name '*' -execdir cat '{}' \;

When a directory is passed to cat, you'll see something like:

cat: ./chapter_01: Is a directory

Immediately following, the find will cat the contents of that directory.

find . -name '*' -execdir cat '{}' \;

When a directory is passed to cat, you'll see something like:

cat: ./chapter_01: Is a directory

Immediately following, the find will cat the contents of that directory.

find . -name '*' -execdir cat '{}' \;

When a directory is passed to cat, you'll see something like:

cat: ./chapter_01: Is a directory

Immediately following, the find will cat the contents of that directory.

Post Migrated Here from stackoverflow.com (revisions)
Source Link
ire_and_curses
  • 12.5k
  • 3
  • 41
  • 35

find . -name '*' -execdir cat '{}' \;

When a directory is passed to cat, you'll see something like:

cat: ./chapter_01: Is a directory

Immediately following, the find will cat the contents of that directory.