Solved

find: incomplete statement

Posted on 2006-11-22
3
958 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.

763 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