fixjson
fixjson copied to clipboard
Argument list too long
Is it possible to add something like a queue to prevent the Argument list too long error? Thanks
You can use (with literal single quotes):
# current directory
fixjson '*.json'
# current directory and all subdirectories, recursively
fixjson '**/*.json'
# exactly the first child directory
# (not the current directory, no grandchildren)
fixjson '*/*.json'
This causes fixjson to use its glob module to walk the directory rather than the shell passing all of the JSON files as strings.