Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 (Tek) 9/26/83; site tektronix.UUCP Path: utzoo!linus!decvax!ucbvax!ucbcad!tektronix!jerryp From: jerryp@tektronix.UUCP Newsgroups: net.unix Subject: Re: Little question on "cat" Message-ID: <2807@tektronix.UUCP> Date: Mon, 25-Jun-84 16:09:39 EDT Article-I.D.: tektroni.2807 Posted: Mon Jun 25 16:09:39 1984 Date-Received: Wed, 27-Jun-84 03:37:31 EDT References: <1211@sri-arpa.UUCP> Organization: Tektronix, Beaverton OR Lines: 26 > Does anyone know why "cat" doesn't seem to have a flag... > to simply list files with an indication of the name of the file > preceeding the contents, separated from the data by a special > character or a newline or two... ? It's not documented, but if you give head(1) more than one file to read, it spits out a filename before each one, this way: % head foo.c foo.man ==> foo.c <== (contents of foo.c) ==> foo.man <== (contents of foo.man) % Normally, head gives only the first ten lines... but something like % head -200 foo.c foo.man should give a complete listing of any but the longest files. --Jerry Peek, UNIX Training Instructor, Tektronix, Inc. US Mail: MS 76-036, P.O. Box 500, Beaverton, OR 97077 uucp: {allegra,decvax,hplabs,ihnp4,mit-eddie,ucbvax}!tektronix!jerryp CSnet: jerryp@tek ARPAnet: jerryp.tek@csnet-relay Phone: 503/627-1603