#!/usr/bin/node // Stand-in `journalctl --user -u UNIT --since @EPOCH -o cat` over $SD_STATE/journal.jsonl (the test's). const fs=require('node:fs'),path=require('node:path'); const sd=process.env.SD_STATE,a=process.argv.slice(2);let unit='',since=''; for(let i=0;iJSON.parse(l))}catch{} for(const o of lines)if(o.unit===unit&&o.epoch>=from)console.log(o.text);