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

    Join Date
    Oct 2010
    Posts
    10
    Rep Power
    0

    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. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,395
    Rep Power
    1688
    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