From 3d452d56409df072c4a760ec201592f2dd4c9e8f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 5 Nov 2019 06:17:41 +0100 Subject: [PATCH] Add draft for a post about cutting CSV lines at the 10th column --- _drafts/cut-at-ten.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 _drafts/cut-at-ten.md diff --git a/_drafts/cut-at-ten.md b/_drafts/cut-at-ten.md new file mode 100644 index 0000000..e44ae39 --- /dev/null +++ b/_drafts/cut-at-ten.md @@ -0,0 +1,5 @@ +``` lisp +(defun cut-at-ten () + (while (re-search-forward "," (save-excursion (end-of-line) (point)) t 10) + (newline-and-indent))) +```