Open main menu

OpenVZ Virtuozzo Containers Wiki β

Editing Talk:Fedora Core 5 Tips

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
=== Simplified commoand ===
 
=== Simplified commoand ===
The [[Fedora_Core_5_Tips&diff=2252&oldid=2251|simplified command]] for fixing metadata just displays the text to the screen. I'm looking at this perhaps being a bit of receipe type book for people who struggle with openvz (ie, folks a bit newer to linux). With the display on the screen they still have to write it to a temporary file, and then copy that temporary file over the original, so the receipe is a bit incomplete.  
+
The simplified command for fixing metadata just displays the text to the screen. I'm looking at this perhaps being a bit of receipe type book for people who struggle with openvz (ie, folks a bit newer to linux). With the display on the screen they still have to write it to a temporary file, and then copy that temporary file over the original, so the receipe is a bit incomplete.  
  
 
You can easily do this in a one line command of course, but you still end often using an extra intermediate file, which is why I picked the .orig file way of doing things. I think it's a good example for folks who might do other (especially non-idempotent) sed operations. The original method allows repeated applications without worrying if something has already been applied, is completely reversible, and if a source repo is available makes patch submission very easy :) Any time I find myself modifying upstream sources I've used this approach (ie, keep an .orig copy) and it has worked very well especially for contributing back.   
 
You can easily do this in a one line command of course, but you still end often using an extra intermediate file, which is why I picked the .orig file way of doing things. I think it's a good example for folks who might do other (especially non-idempotent) sed operations. The original method allows repeated applications without worrying if something has already been applied, is completely reversible, and if a source repo is available makes patch submission very easy :) Any time I find myself modifying upstream sources I've used this approach (ie, keep an .orig copy) and it has worked very well especially for contributing back.   
  
Anyways, those are the two cents. Happy to see it simplified again (the other classic approach is > tempfile && mv tempfile origfile). And of course the tip is likely to be short lived anyways! [[User:Augustz|Augustz]] 17:46, 11 September 2006 (EDT)
+
Anyways, those are the two cents. Happy to see it simplified again (the other classic approach is > tempfile && mv tempfile origfile). And of course the tip is likely to be short lived anyways!

Please note that all contributions to OpenVZ Virtuozzo Containers Wiki may be edited, altered, or removed by other contributors. If you don't want your writing to be edited mercilessly, then don't submit it here.
If you are going to add external links to an article, read the External links policy first!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)
Return to "Fedora Core 5 Tips" page.