| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
saving altered file in script
|
Original Message
|
Name: Niall21
Date: March 7, 2006 at 12:39:51 Pacific
Subject: saving altered file in scriptOS: unixCPU/Ram: ?Manufacturer/Model: ? |
Comment: I have a script that inputs a line into the first line of a text file using sed: sed '/1i\ '$LINE'' <$FILE FILE and LINE are inputted using read. My problem is that I want to save the file once this line is entered. I cannot get the write command (w FILENAME) to work. Any suggestions?
Report Offensive Message For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Unix Forum Home