![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| File Modified : Alert me | StrengthThaDon | UNIX for Dummies Questions & Answers | 6 | 04-08-2008 12:23 PM |
| ftp most recently modified file | ahmedwaseem2000 | Shell Programming and Scripting | 6 | 02-27-2007 10:22 AM |
| who modified my file!! | mohanprabu | UNIX for Dummies Questions & Answers | 4 | 10-28-2005 07:18 PM |
| File last modified | szzz | High Level Programming | 4 | 11-05-2003 08:44 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to retrieve original contents of a modified file (modified using vi)
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required How can I get the previous version of the file.i.e the one which was there on which I had made changes |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Not much solace here, http://osr507doc.sco.com/en/OSUserG/...ted_files.html
You could also consider using SCCS. |
|
#3
|
|||
|
|||
|
There probably is no need to make this statement but it can't be stressed enough. Back up any files that you intend on editing no matter how little of a change you plan to make.
Easiest way to do this is make a copy of the file and append the date, time, or relevant note to the end of the file name if you need to ever go back to the original. |
|
#4
|
|||
|
|||
|
If it was in cvs...
Code:
rm file-with-bad-change cvs update |
|||
| Google The UNIX and Linux Forums |