#!/bin/bash
./program < input.txt > output.txt
The > output.txt part is being ignored so output.txt ends up being empty.
This works for the sort command so I expected to also work for other programs.
Any reason this doesn't work? How should I achieve this?
2> output.txt