% ls -l foo foo not found % touch foo % ls -l foo -rw-r--r-- 1 jeffy 0 Feb 17 14:01 foo
Suppose you have some stuff on the screen that you'd like to get into a file. Try this:
% cat > foo [copy stuff and paste it here] Ctrl-D % ls -l foo -rw-r--r-- 1 jeffy 136 Feb 17 14:05 foo
So you're really using the shell and redirection to create the file, and cat just as the funnel through which to pour the desired contents.
% ypcat -k aliases | grep '^rich ' > foo % cat foo rich rich@EXUSER.
Up to the TTTT index
Tuesday Tiny Techie Tips are all © Copyright 1996-1997 by Jeff Youngstrom. Please ask permission before reproducing any of this material.