Set list command in vi

I am trying to parse a giant log file using node.js, the file doesn't seem to get '\ n', but when I set the list to vi it ​​shows me "$" at the end of each line, does anyone know what that is . I mean, I can break the string on it.

Thanks Dhaval

+4
source share
2 answers

I would recommend checking your file through

cat -v -e 

which will show you all non-printable characters and line endings.

+10
source

This happens when you do a set list , so you should read :h 'list' , and not ask about it here. Everything you need to know about this $ is listed in the help.

The second question (dividing line at the end of the line) answers in :h getline() . I also doubt that the file really does not have NL, so write here how you came to the conclusion: "The file does not seem to receive" \ n ".

-1
source

All Articles