[clug] IO redirection

Eyal Lebedinsky eyal at eyal.emu.id.au
Sat Sep 16 22:37:04 UTC 2017


On 16/09/17 23:15, Bryan Kilgallin (iiNet) via linux wrote:
> Perhaps it's the fish syntax. But all I could do was send output to a file. I tried to execute input from a file--to no avail.
> 
> {
> 
>      To read standard input from a file, write <SOURCE_FILE
>      To write standard output to a file, write >DESTINATION
>      To write standard error to a file, write ^DESTINATION
>      To append standard output to a file, write >>DESTINATION_FILE
>      To append standard error to a file, write ^^DESTINATION_FILE
>      To not overwrite ("clobber") an existing file, write '>?DESTINATION' or '^?DESTINATION'
> 
> }
> 
> http://fishshell.com/docs/current/index.html

Good morning  Bryan,

What command did you run to try to "execute input" and how did it fail?

For example, this command:
	sort <infile >outfile
should "read standard input", sort it, then "write standard output". does this work for you?

-- 
Eyal Lebedinsky (eyal at eyal.emu.id.au)



More information about the linux mailing list