[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sed, tr, ?!?



On Tue, Oct 10, 2000 at 06:52:49PM +0200, Geppo wrote:
> Ciao a tutti,
> 
> mi vergogno ma mi sto perdendo in un bicchier d'acqua con
> un problema banale: in un file di testo, nei casi in cui cui siano
> due o piu' righe vuote consecutive dovrei sostituirle con una sola
> riga.

cat -s file1.txt > file2.txt ; mv -f file2.txt file1.txt

-- 
	- Zack -

Stefano Zacchiroli <zacchiro@cs.unibo.it> ICQ# 33538863
Undergraduate Student of Computer Science at University of Bologna, Italy
SysAdm of verdicchio.students.cs.unibo.it (130.136.3.134)
	"Information wants to be Open"



Reply to: