From: Matthew Stapleton Subject: leading spaces in a text file. Date: Fri, 23 Aug 2002 23:21:28 -0700 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20020823.232133.-3790865.0.matthewstapleton@juno.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-newbie@vger.kernel.org i have been formatting some texts for an online archive of e-texts. every once and a while i encounter a file that has leading spaces in front of each sentence. to remedy this problem i have used the 'tr' utility to squeeze multiple occurrences of spaces. this works very nicely with the exception that the output file has a single leading space at the beginning of each sentence. is there a better way of doing this or of finishing this job? thanks Matthew Stapleton ==================================== http://webpages.marshall.edu/~staple12 Resistance is Futile! ==================================== - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs