🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1096

Re: How to do <cmd> file | hold file

#1096
From: Rod Williams
Date: Fri, 07 Sep 1990 22:47
13 lines
969 bytes
>                          ...suppose I want to sort a file
>and place the result in the same file without destroying it,

Doesn't 'sort' allow you to do this already in one easy step?

	sort -o<file> <samefile>

...or did I misunderstand the question?
-- 
* * * * * * * * * * * * * * * * * * * * *         * * * * * * * * * *
*   Rod Williams                        *         entertain         *
*   Pacific Bell - San Ramon CA         *         a thought         *
* * * * * * * * * * * * * * * *         * * * * * * * * * * * * * * *
Technical Details
Message-ID: <1727@pbhyd.PacBell.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!pacbell.com!pacbell!pbhyd!rjw
References: <2274@ns-mx.uiowa.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!pacbell.com!pacbell!pbhyd!rjw
From: rjw@PacBell.COM (Rod Williams)
Newsgroups: comp.unix.shell
Subject: Re: How to do <cmd> file | hold file
Message-ID: <1727@pbhyd.PacBell.COM>
Date: 7 Sep 90 22:47:35 GMT
References: <2274@ns-mx.uiowa.edu>
Reply-To: rjw@PacBell.COM (Rod Williams)
Organization: Back At Pacific Bell Again
Lines: 13