buggrep - Bugs: bug #28932, Grep doesn't handle Mac line ending

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28932: Grep doesn't handle Mac line ending

Submitted by:  None
Submitted on:  Fri 19 Feb 2010 01:21:28 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 19 Feb 2010 01:53:33 PM UTC, comment #1:

Please use tr \\r \\n to convert the line endings, possibly converting them back when you are done with any Unix utility. Note that grep will "act strange" also with Windows line endings, for example

$ echo $'abc\r\ndef\r' | grep c$
$ echo $'abc\r\ndef\r' | grep c.$
abc

Paolo Bonzini <bonzini>
Fri 19 Feb 2010 01:21:28 PM UTC, original submission:

If Mac line endings (\R) are used, grep acts really strange.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Feb 2010 01:53:33 PM UTCbonziniStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1