1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2010
    Rep Power

    Need Help in Removing \N

    Hi All,

    I had an file that contains character '\N' in many rows. What I wanted to do is try to remove that character.

    I tried using tr -d '\N' filename.txt

    But it is Printing '\' in the places '\N'.....
    Can anybody help me with..
  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Rep Power
    The \ is being seen as a quoting character, try using tr -d '\\N'
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo