Solved

find: incomplete statement

Posted on 2006-11-22
3
960 Views
Last Modified: 2013-12-26
Hi ,
  Am trying to run the following command :
  find . -exec grep -i 'Header' {} ; -print > $HOME/xmlver.txt
  to get me the header information for all files in a certain directory , but the problem is that it ends with the error sayin find: incomplete statement ..

  is there anything wrong with the command , please advise .

Regards.
0
Comment
Question by:Dr_Billy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
cjjclifford earned 125 total points
ID: 17997486
you need to terminate the "grep" command with a \;

i.e. you need to escape out the semi-colon

i.e.

find . -exec grep -i 'Header' {} \; -print > $HOME/xmlver.txt
0
 
LVL 58

Expert Comment

by:amit_g
ID: 17997506
Add a \ before ;

find . -exec grep -i 'Header' {} \; -print > $HOME/xmlver.txt
0
 
LVL 8

Expert Comment

by:koppcha
ID: 17998480
find . -exec grep -i 'bin' {} \; > $HOME/xmlver.txt
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 103
method notes when mouse over in eclipse 5 96
conditional code and condition difference 9 87
unix example issues 18 114
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question