Answer the question
In order to leave comments, you need to log in
What's the best way to pass a string to a command line utility that requires a file?
The input utility requires a file. But I have a string at my disposal.
Are there better approaches to the problem than:
Answer the question
In order to leave comments, you need to log in
Pass "-" as the file name. This is a standard input-output file into which you can push your line through, for example, echo "string" |
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question