Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!uw-beaver!milton!sumax!ole!thebes!amc-gw!stuart From: stuart@amc-gw.amc.com (Stuart Poulin) Newsgroups: comp.unix.shell Subject: Re: Retaining file permissions Keywords: chmod, sed, awk Message-ID: <5864@amc-gw.amc.com> Date: 27 Feb 91 18:22:04 GMT References: <6039@ptsfa.PacBell.COM> <1991Feb22.041826.201@athena.mit.edu> <11554@jpl-devvax.JPL.NASA.GOV> Reply-To: stuart@tfatf.amc.com (Stuart Poulin) Organization: Applied Microsystems, Redmond, WA Lines: 21 You can edit the file in place using ex and `here'. Ex has options to suppress it's informative output if you want (I think). #!/bin/sh File=$1 echo -n "From " read FROM echo -n "To " read TO ex $File <