Fork me on GitHub

I have a big log text file from a linux server that I now have on a windows computer with emacs. I can manipulate the file fine with clojure with line-seq, etc, but it's too big to work with. So I found some powershell incantation to extract the last n lines of a file and output it into a new file, but now when I attempt to work with it in emacs Im getting ^@ symbols between each character. Seems like some sort of encoding issue. Anyone know how I might be able to fix this?


@jjttjj you’re only using the powershell thing because the file is too large to view in emacs? Or because you’re having problems manipulating it with clojure?


yeah basically I only need to work with the last X,000 lines. but it's 700mb of text so trying take-last on the line-seq isn't working so well


open to other non-powershell options to work with this though


couple options depending on what you’re trying to do and what you have available:


just view/edit/search the thing in emacs directly using ; which opens files in chunks


you can also always just use tail -n <line-count> filename > new-file.txt; while this isn’t available in powershell, it is available in emacs’ eshell


which I believe works just fine on Windows as well


(try it by invoking M-x eshell)


hmmm getting a command not found but vlfi should meet my needs for now, thanks!