I wrote a standard i/o program which was taken from "c for dummies"
I saved it as io.c and ran the programCode:#include <stdio.h>
int main()
{
char ch;
while ((ch = fgetc(stdin)) != EOF)
fputc(ch,stdout);
return(0);
}
Also, I created a new text file called text.txt and wrote the words
However, when I want to redirect stdin withCode:Hello. I am a text file
bash says that command io is not found.Code:io < text.txt,
Any ideas on how to resolve this?
I tried cat < text.txt and it works fine.
But a few pages later another command is shown ls -l | underline where underline is a program that I created, and again it shows that udnerline command is not found