You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often need to make a query on a collection of files (usually collected using find) to both filter using said query and print.
The solution that I'd like
In case there is more than one -f-s, or if -f gets a pattern, the base data structure would be a list of objects.
Each object will have the following key-value pairs: file-name, (provided) file path (name included), and (parsed) content.
On the surface this looks good, but we'll run into trouble when we use formats other than JSON... CSV for example.
I'll have a think about how this can be supported.
Related Problem
I often need to make a query on a collection of files (usually collected using
find
) to both filter using said query and print.The solution that I'd like
In case there is more than one
-f
-s, or if-f
gets a pattern, the base data structure would be a list of objects.Each object will have the following key-value pairs: file-name, (provided) file path (name included), and (parsed) content.
Something like:
The text was updated successfully, but these errors were encountered: