Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Unknown Newsgroups: comp.os.linux.misc Subject: Re: DeMime M$hit ? Date: Tue, 27 Jan 2015 08:27:21 +0000 (UTC) Organization: A noiseless patient Spider Lines: 61 Message-ID: References: <1d4f3c4014beabd37a374f3248511b34@remailer.privacy.at> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Jan 2015 08:27:21 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="85cb174b51d7f2996ed208512f2210e2"; logging-data="31752"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BabS78Sw+5mXW8M/Rl4uErh0Dt0cp6xM=" User-Agent: Pan/0.133 (House of Butterflies) Cancel-Lock: sha1:T3aEcMSxJDWZVYWQuTTLkn8+wbc= Xref: csiph.com comp.os.linux.misc:13495 On Fri, 23 Jan 2015 18:10:31 +0000, Kenny McCormack wrote: > In article <1d4f3c4014beabd37a374f3248511b34@remailer.privacy.at>, > Anonymous Remailer (austria) wrote: >> >>Avoid9...@gmail.com [A]: A> remove the 2-char: >>"=" , line overflow A> How would you do/EXPLAIN this? >> >>outfile >> >>This tells awk to >> >>- split its input using the specified string RS (actually regular >> expression) as a record delimiter >> >>and >> >>- print out the records without any record delimiter (ORS) after >> each one of them. >> >> > Actually, don't you only want to join the lines if the last line is "=" > ? (Not otherwise) > > So, if your input is: > > long line long line long line long line long line long line long line > long line= short line short line > short line short line > short line short line > short line short line > long line long line long line long line long line long line long line > long line= short line short line > short line short line > short line short line > short line short line > > The output should be: > > long line long line long line long line long line long line long line > long line short line short line short line short line > short line short line > short line short line > long line long line long line long line long line long line long line > long line short line short line short line short line > short line short line > short line short line > > So, it should be something like (untested): > > sub(/=$/," ") { printf("%s",$0);next } 17 The line-len is unimportant, if I use it for TextToSpeech; and if I need to read/keep it, I just filter it through which folds the lines at the suitable word-break. ==Thanks. PS. `which sub` == unknown we use bash not