Probably not the most efficient way of doing it, but: cat filename | sed -E 's/^[0-9]+\. //' | tr -s '\n' :) -filipp On 25.01.2009, at 0:47, Charles Howse wrote: > Hi, > I can't find an example of what I need to do online, could someone > please give me an example of how to use sed to remove the line > numbers and carriage returns/linefeeds from a 100 line file? > > Currently: > 1. <string of text> > > 2. <string of text> > > 3. <string of text> > ... > 100. <string of text> > > Result: > <string of text> > <string of text> > <string of text> > > -- > Thanks, > Charles > > Signs you're getting old... > A $4.00 bottle of wine is no longer "pretty good stuff". > _______________________________________________ > X-Unix mailing list > X-Unix at listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix