Let's say I had 10MB string to pass to a CLI command.
Could I directly pass it in the CLI? eg. my_cmd "my_string"
Or maybe my_cmd << file_with_data
?
Or would I have to write it to disk first and then the command internally read the file?
Could I pass the command a memory location of the string?
What other options exist?
====
EDIT: To be clear my question is about passing a huge string through a CLI. Are there size limits? Other issues?
EDIT 2: I would be passing this data from a program to a child process, written in different languages.