editing standard input file in shell script

view full story

http://stackoverflow.com – I got a problem to read standard input file, to edit the standard input, and to write the output to other file. So, the shell will be run with command like this: ./shellName < inputFile > outputFile so I write my shell like this: read INPUT tr '[:upper:]' '[:lower:]' INPUT grep "<td>" INPUT | sed -r 's/<td>([^<]*)<\/td>/\1/g' #to search all line that contain <td> and delete <td> and <\/td> echo $INPUT then, I just realize that the command read is read the standard input line by line. the code itself didn't work. I tried to change all uppercas (HowTos)