Skip to main content
4 events
when toggle format what by license comment
Jan 17, 2023 at 5:51 answer added NickD timeline score: 2
Jan 17, 2023 at 5:03 comment added NickD Emacs is the wrong tool for such manipulations. You can contort it into a tool whose capabilities are poor relatives of what an appropriate tool provides, but why if the tool already exists? If you massage the file to have an empty line between records, you could write an awk script to do what you want in half a dozen lines of code - maybe fewer. That's because awk was made for such tasks. I know you say that you don't know awk but maybe you should learn it (particularly if you have more questions like this in the future).
Jan 17, 2023 at 3:55 comment added lawlist If you work with lists, then you can extract anything you want from the list and create your own output, whether that be one line per file separating data by delimiters, or anything else. E.g., '((name . abc) (type . def) (file . ghi)) The entire rar output in the example can easily be converted into a list, and the master list can multiple lists, one for each file: '(((name . abc) (type . def) (file . ghi)) ((name . jkl) (type . mno) (file . pqr)))
Jan 16, 2023 at 23:35 history asked Ray Woodcock CC BY-SA 4.0