Read input from console if '$' at beginning of input file