Tomer Amir
Tomer Amir

Reputation: 1585

using the find function and the exec flag

This is noob question: I'm trying to run the following script that I found online:

find <file name> -type f -exec cat {}

for some reason I'm getting an find: missing argument to '-exec' error.

What am I doing wrong?

Upvotes: 1

Views: 1624

Answers (1)

fferri
fferri

Reputation: 18940

The semicolon (quoted or escaped) at the end of line is missing. It should be:

find <file name> -type f -exec cat {} \;

Upvotes: 3

Related Questions