Re: Line Endings

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53269
interpreted = N
texte = Did a quick search and found the appended. It looks like it would be bit tricky. This doesn't contain any code to change anything. ================================================================================= If you're wanting to grep through multiple files in multiple directories some levels deep, use a combination of find, grep, and xargs. For example, my boss wanted to look for a string FOO in all of our sorce code (.c, .cpp, and .h files). This is accomplished like this (assuming we're looking in the current dir and below): keith@develop[pts/7]:~$ find . -type f \( -name \*.c -o \ > -name \*.cpp -o -name \*.h \) \ > -print0 | xargs --null grep FOO Check the man for find(1), grep(1), and xargs(1) Ciao, kw /* Keith Warno ** Developer & Sys Admin ** http://www.HaggleWare.com/ */ ----- Original Message ----- From: "Samy Elashmawy" To: "Fran?ois Pinard" Cc: Sent: 16 May 2000, Tuesday 05:02 Subject: Re: [SLE] grep help At 07:43 PM 5/15/2000 -0400, Fran?ois Pinard wrote: >Samy Elashmawy writes: > >> I tried grep -r "arch4" / it only searches the root and nothing below that. I tried grep "arch4" /* /*/* /*/*/* /*/*/*/* ant it stopped with an error arguments two long or something. I was hoping to find the deffinition files that have the size and pixel lenth of the printer page layoust so I could change them to a custom setting. Murphys law ya know >It works here, running version 2.3. But you need a recent version of >`grep', I do not remember when the `-r' was added to it. Check with >`grep --help' to see if `-r' is supported. > >-- >Fran?ois Pinard http://www.iro.umontreal.ca/~pinard > ================================================================================= Donovan Donovan Brooke wrote: [snip] -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Line Endings ( "Will Starck" 2007)
  2. Re: Line Endings ( Phil Herring 2007)
  3. Re: Line Endings ( Christer Olsson 2007)
  4. Line Endings ( Clint Davis 2007)
  5. Re: Unix line endings ( Rob Marquardt 2003)
  6. Re: Unix line endings ( Clint Davis 2003)
  7. Re: Unix line endings ( Gary Krockover 2003)
  8. Re: Unix line endings ( Jesse Proudman 2003)
  9. Re: Unix line endings ( Gary Krockover 2003)
  10. Re: Unix line endings ( Jesse Proudman 2003)
  11. Re: Unix line endings ( Gary Krockover 2003)
  12. Re: Unix line endings ( Donovan Brooke 2003)
  13. Re: Unix line endings ( Gary Krockover 2003)
  14. Re: Unix line endings ( Donovan Brooke 2003)
  15. Unix line endings ( Gary Krockover 2003)
  16. Re: OS X Line Endings HELL! ( Clint Davis 2003)
  17. Re: OS X Line Endings HELL! ( Donovan Brooke 2003)
  18. Re: OS X Line Endings HELL! ( CN Stuff 2003)
  19. Re: OS X Line Endings HELL [solved] ( Clint Davis 2003)
  20. OS X Line Endings HELL! ( Clint Davis 2003)
  21. Re: Line Endings ( William DeVaul 2003)
  22. Re: Line Endings ( Donovan Brooke 2003)
  23. Re: Line Endings ( Donovan Brooke 2003)
  24. Re: Line Endings ( Tim Robinson 2003)
  25. Line Endings ( Clint Davis 2003)
  26. Re: line endings for Mac OS X files? ( Christer Olsson 2003)
  27. Re: line endings for Mac OS X files? ( "Dana E. Keil" 2003)
  28. Re: line endings for Mac OS X files? ( Donovan 2003)
  29. Re: line endings for Mac OS X files? ( Daniel Schutzsmith 2003)
  30. Re: line endings for Mac OS X files? ( marc@kaiwi.com (Marc Kaiwi) 2003)
  31. line endings for Mac OS X files? ( "Dana E. Keil" 2003)
  32. Re: Parsing overhead for commenting out line endings (Scott Anderson 2003)
  33. Re: Parsing overhead for commenting out line endings (Brian Fries 2003)
  34. Re: Parsing overhead for commenting out line endings (Scott Anderson 2003)
  35. Parsing overhead for commenting out line endings (Rob Marquardt 2003)
  36. Re: Mac vs. Unix Line Endings (Kenneth Grome 2002)
  37. Mac vs. Unix Line Endings (Clint Davis 2002)
  38. Re: DB Line endings (Aaron Lynch 2002)
  39. Re: DB Line endings (Alain Russell 2002)
  40. DB Line endings (Aaron Lynch 2002)
Did a quick search and found the appended. It looks like it would be bit tricky. This doesn't contain any code to change anything. ================================================================================= If you're wanting to grep through multiple files in multiple directories some levels deep, use a combination of find, grep, and xargs. For example, my boss wanted to look for a string FOO in all of our sorce code (.c, .cpp, and .h files). This is accomplished like this (assuming we're looking in the current dir and below): keith@develop[pts/7]:~$ find . -type f \( -name \*.c -o \ > -name \*.cpp -o -name \*.h \) \ > -print0 | xargs --null grep FOO Check the man for find(1), grep(1), and xargs(1) Ciao, kw /* Keith Warno ** Developer & Sys Admin ** http://www.HaggleWare.com/ */ ----- Original Message ----- From: "Samy Elashmawy" To: "Fran?ois Pinard" Cc: Sent: 16 May 2000, Tuesday 05:02 Subject: Re: [SLE] grep help At 07:43 PM 5/15/2000 -0400, Fran?ois Pinard wrote: >Samy Elashmawy writes: > >> I tried grep -r "arch4" / it only searches the root and nothing below that. I tried grep "arch4" /* /*/* /*/*/* /*/*/*/* ant it stopped with an error arguments two long or something. I was hoping to find the deffinition files that have the size and pixel lenth of the printer page layoust so I could change them to a custom setting. Murphys law ya know >It works here, running version 2.3. But you need a recent version of >`grep', I do not remember when the `-r' was added to it. Check with >`grep --help' to see if `-r' is supported. > >-- >Fran?ois Pinard http://www.iro.umontreal.ca/~pinard > ================================================================================= Donovan Donovan Brooke wrote: [snip] -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[protect admin] (1997) WebMerchant Only reads 1.4 order files error (1997) formvars available in formulas.db? (2000) WordBreak Qestion (1998) [WebDNA] Emailer breaking format (2015) Misunderstanding?? (1997) File Uploads... (1997) [WebDNA] Email time bug? YES, it's a bug! (2011) foreign languages, email, webcat (1998) [append] (1997) embedding [showcart] ??? (1998) Location of Browser Info.txt file (1997) Sister-in-Law-Pimps beware... (2003) Is there an easier way? (1998) WCS Newbie question (1997) WebCatalog NT beta 18 problem (1997) YA 4.5.1 problem (2004) Remote stockroom ? (1998) Sorting error (1997) Editing the search string (1997)