Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!atc!s5000!nightowl!hawkmoon!det From: det@hawkmoon.MN.ORG (Derek E. Terveer) Newsgroups: comp.unix.questions Subject: Re: Questions on using pr and cat... Message-ID: <1991Jan11.214238.5754@hawkmoon.MN.ORG> Date: 11 Jan 91 21:42:38 GMT References: <1991Jan9.211742.16190@menudo.uh.edu> Distribution: usa Organization: Home System (One of the Eternal Champions); Eagan, MN, 55123-2507, USA Lines: 18 rcte2p@menudo.uh.edu (Paul Stephen Sears) writes: >I have some questions about pr and cat. I want to combine a number of >small text files into a single file. [...] one page long. I thought of >using cat, but the files run together and I wanted a way to identify >each new file. You could try the following: pr * | uniq This will provide you with headers for each file, but uniq will filter out superfluous line feeds at the end of each file... -- Derek "Tigger" Terveer det@hawkmoon.MN.ORG - MNFHA, NCS - UMN Women's Lax, MWD I am the way and the truth and the light, I know all the answers; don't need your advice. -- "I am the way and the truth and the light" -- The Legendary Pink Dots