News for hackers. Stuff that matters.
Re:Introduction to sed by burgerbrain on Friday October 07, 2011 @05:57PM (#3086175)
The utility 'sponge' is useful for doing this in the general case.
Re:Introduction to sed by AlecSchueler on Friday October 07, 2011 @09:16PM (#3086696)
Part of the 'moreutils' package, for the curious. The description for sponge on the project homepage reads "soak up standard input and write to a file."