I want to invoke a command for every line of the standard input, much like
xargs, but the line should be passed as standard input, not as a command-line argument:
cat some-file.txt | <magic> | wc -c
- this should print the number of characters in each line of the file.
What are my options?
(The actual use case is processing a
grep combination with
jq which seems to only start processing when it reaches EOF.)