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 | + | 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! | + | 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! |