Related questions
How can I pretty-print JSON in a shell script?
Is there a (Unix) shell script to format JSON in human-readable form?
Basically, I want it to transform the following:
{ "foo": "lorem", "bar": "ipsum" }
... into something like this:
{
"foo": "lorem",
"bar": "ipsum"
}
grep, but only certain file extensions
I am working on writing some scripts to grep certain directories, but these directories contain all sorts of file types.
I want to grep just .h and .cpp for now, but maybe a few others in the future.
So far …