On Wed, Apr 24, 2002 at 11:37:19AM +0200, Vincent van Dam wrote: > > Anyway, I had some problems. I usually use ``cat >file'' to create > > simple files. But that didn't work with a ``file: file not found'' > > error. > > cat displays a file, thus uses a file as input, i think you were > confused with 'echo this > file'
wrong! cat puts its inputchannel simply trough to its outputchannel. If you specify a file(s) it will use the file(s) as its input, otherwise it will simply use (just as every other 'good' unix program) the std-in. In an interactive shell this means that cat will read the keyboard and out it to it's std-out. If std-out is redirected to a file using the '>' rederection command, you can use cat > filename to directly type letters into a file David -- For info, see http://www.stack.nl/~wynke/MSX/listinfo.html
