🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1060

Re: How to do <cmd> file | hold file (now cp)

#1060
From: BURNS
Date: Thu, 13 Sep 1990 07:25
25 lines
1319 bytes
in article <13611@hydra.gatech.EDU>, gt0178a@prism.gatech.EDU (BURNS,JIM) says:
[version 1 of script]

And more to Leslie's point, by adding the chmod, its clear that neither cp
or > change the attributes of the destination file:

+ touch s
+ chmod 700 s
+ ll -i s usage.new
123973 -rwx------  1 gt0178a         0 Sep 13 03:23 s*
123822 -rw-r--r--  1 gt0178a      1280 Sep 13 02:32 usage.new
+ cp usage.new s
+ ll -i s usage.new
123973 -rwx------  1 gt0178a      1280 Sep 13 03:23 s*
123822 -rw-r--r--  1 gt0178a      1280 Sep 13 02:32 usage.new
+ cat
+ 1> s 0< /dev/null
+ ll -i s usage.new
123973 -rwx------  1 gt0178a         0 Sep 13 03:23 s*
123822 -rw-r--r--  1 gt0178a      1280 Sep 13 02:32 usage.new
-- 
BURNS,JIM
Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a
Internet: gt0178a@prism.gatech.edu
Technical Details
Message-ID: <13613@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!rutgers!mephisto!prism!gt0178a
References: <13611@hydra.gatech.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!psuvax1!rutgers!mephisto!prism!gt0178a
From: gt0178a@prism.gatech.EDU (BURNS)
Newsgroups: comp.unix.shell
Subject: Re: How to do <cmd> file | hold file (now cp)
Message-ID: <13613@hydra.gatech.EDU>
Date: 13 Sep 90 07:25:31 GMT
References: <13611@hydra.gatech.EDU>
Organization: Georgia Institute of Technology
Lines: 25