Three Ways to Feed File Contents into Command Line Arguments on Linux

To save you from (mis)typing it by hand…

John Mills

--

Sometimes it is useful to read file contents into command line arguments on Linux. For example, you might have a long line containing a cryptic token string or JSON that would be tedious and error prone to type out.

--

--

John Mills

John is a software developer living in Wellington, New Zealand. He writes about code, tech, travel & “ancient” New Zealand.