Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. bash-3.2$ # The below find works fine..
  2. bash-3.2$ find . -type f -exec grep -il "search string" {} ;
  3. bash-3.2$ # But I am unable to redirect output to a log file..
  4. bash-3.2$ find . -type f -exec grep -il "search string" {} > log.txt
  5. find: incomplete statement
  6. bash-3.2$
  7.  
  8. -exec command True if the executed command returns a zero
  9. value as exit status. The end of command
  10. must be punctuated by an escaped semicolon.
  11. A command argument {} is replaced by the
  12. current path name.
  13.  
  14. find . -type f -exec grep -il "search string" {} ; > log.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement