Global Feed Post Login
Replying to Avatar Josua Schmid

I‘m trying to craft a filter using just Unix commands. Instead of

tac … | grep -e … -e … | grep -e … -e … | head -n 10

I need to somehow do a union of multiple of these. I can not think of another solution than cat and subprocesses.

Avatar
fiatjaf 1y ago

you should start using https://github.com/jqlang/jq and https://github.com/fiatjaf/nak

Reply to this note

Please Login to reply.

Discussion

Avatar
Josua Schmid 1y ago

How are those performance-wise on big files? I always heard that GNU grep is fastest.

Thread collapsed