Thuggie G

find xargs grep

Use the -print0 output option on find, and the -0 input option on xargs.  This delimits the find results with null characters, and tells xargs to expect the results in that format.  That way xargs can stomach path names containing spaces or other potentially troublesome characters in the paths.
No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

About Me

Thuggie G
View my complete profile

Blog Archive

  • ►  2023 (1)
    • ►  January (1)
  • ►  2020 (1)
    • ►  December (1)
  • ►  2019 (2)
    • ►  April (2)
  • ►  2018 (2)
    • ►  August (1)
    • ►  June (1)
  • ►  2017 (1)
    • ►  July (1)
  • ►  2015 (3)
    • ►  October (2)
    • ►  March (1)
  • ►  2014 (5)
    • ►  December (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ►  February (1)
  • ▼  2013 (12)
    • ►  December (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  June (3)
    • ►  May (1)
    • ►  March (1)
    • ▼  February (1)
      • find xargs grep
  • ►  2012 (12)
    • ►  December (1)
    • ►  November (3)
    • ►  August (2)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ►  March (2)
    • ►  January (1)
  • ►  2011 (2)
    • ►  November (2)
  • ►  2010 (5)
    • ►  May (2)
    • ►  April (3)
  • ►  2009 (5)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
  • ►  2008 (9)
    • ►  December (1)
    • ►  October (1)
    • ►  July (7)
Simple theme. Powered by Blogger.