News for hackers. Stuff that matters.

Ask HN: How do I combine grep and scrot?

I have a folder of 100 text files and want to take a separate screenshot of the lines in each file where the word Japanese is mentioned, how can I do this?
( 1 comment | 2 points | on HN )
Re:Ask HN: How do I combine grep and scrot? by LeoSolaris on Tuesday November 23, 2021 @07:40AM (#29317099)
Look up a basic tutorial for BASH programming. It should be pretty easy to set up with an IF statement and a Greater Than comparison.