This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-25
Channels
- # aws (2)
- # beginners (57)
- # boot (31)
- # carry (15)
- # cider (9)
- # cljs-dev (9)
- # cljs-experience (32)
- # cljsrn (94)
- # clojure (129)
- # clojure-dusseldorf (3)
- # clojure-greece (4)
- # clojure-italy (8)
- # clojure-norway (3)
- # clojure-russia (344)
- # clojure-sg (39)
- # clojure-spec (2)
- # clojure-uk (39)
- # clojurescript (84)
- # core-async (99)
- # cursive (10)
- # data-science (1)
- # datascript (4)
- # datomic (66)
- # emacs (10)
- # graphql (4)
- # hoplon (28)
- # jobs (15)
- # luminus (3)
- # lumo (5)
- # off-topic (23)
- # om (4)
- # onyx (32)
- # pedestal (24)
- # re-frame (2)
- # reagent (7)
- # ring-swagger (32)
- # spacemacs (4)
- # untangled (57)
- # utah-clojurians (1)
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
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 https://github.com/m00natic/vlfi ; 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
)