<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7997313029981170997.post8870197260645839445..comments</id><updated>2010-01-25T10:30:41.913-05:00</updated><category term='mobile'/><category term='Fedora'/><category term='postgres'/><category term='tools'/><category term='sysadmin'/><category term='pentaho'/><category term='community'/><category term='hosting'/><category term='analytics'/><category term='SELinux'/><category term='perl data-structures json'/><category term='redhat'/><category term='audio'/><category term='travel'/><category term='css'/><category term='git'/><category term='tips'/><category term='nginx'/><category term='Spree'/><category term='cakephp'/><category term='email'/><category term='nosql'/><category term='social-networking'/><category term='unicode'/><category term='performance'/><category term='piggybak'/><category term='eye-candy'/><category term='reporting'/><category term='thrift'/><category term='facebook'/><category term='visualization'/><category term='openbsd'/><category term='mysql'/><category term='scalability'/><category term='riak'/><category term='security'/><category term='CentOS'/><category term='graphics'/><category term='cucumber'/><category term='rvm'/><category term='cloud'/><category term='django'/><category term='remote-work'/><category term='networking'/><category term='wordpress'/><category term='perlbrew'/><category term='optimization'/><category term='book review'/><category term='dropbox'/><category term='sinatra'/><category term='design'/><category term='mp3'/><category term='ruby-and-ruby-on-rails'/><category term='testing'/><category term='open-source'/><category term='json'/><category term='ruby'/><category term='yui'/><category term='virtualization'/><category term='COTS'/><category term='Camps'/><category term='javascript'/><category term='workflow'/><category term='sponsorship'/><category term='perl'/><category term='messaging'/><category term='environment'/><category term='gnu'/><category term='lua'/><category term='rpm'/><category term='browsers'/><category term='configuration-management'/><category term='python'/><category term='ecommerce'/><category term='Conference'/><category term='voldemort'/><category term='image'/><category term='jasper'/><category term='clients'/><category term='dbdpg'/><category term='Android'/><category term='database'/><category term='version-control'/><category term='linux'/><category term='USPS'/><category term='data-warehouse'/><category term='openafs'/><category term='cassandra'/><category term='mondaylinks'/><category term='php'/><category term='Debian'/><category term='monitoring'/><category term='liquid-galaxy'/><category term='audit'/><category term='Bucardo'/><category term='Java'/><category term='mongodb'/><category term='API'/><category term='seo'/><category term='SeniorNet'/><category term='company'/><category term='jquery'/><category term='jobs'/><category term='sql'/><category term='search'/><category term='Ubuntu'/><category term='Interchange'/><category term='caching'/><category term='ipv6'/><title type='text'>Comments on End Point Blog: Editing large files in place</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.endpoint.com/feeds/8870197260645839445/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html'/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7790661898986015428</id><published>2010-01-25T10:30:41.913-05:00</published><updated>2010-01-25T10:30:41.913-05:00</updated><title type='text'>Rather interesting place you&amp;#39;ve got here. Than...</title><content type='html'>Rather interesting place you&amp;#39;ve got here. Thanks for it. I like such topics and everything connected to them. I definitely want to read more soon.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/7790661898986015428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/7790661898986015428'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1264433441913#c7790661898986015428' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-952445455'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-6153356144499938545</id><published>2009-12-29T07:31:02.631-05:00</published><updated>2009-12-29T07:31:02.631-05:00</updated><title type='text'>as Moltonel pointed out, sed
can do changes based ...</title><content type='html'>as Moltonel pointed out, sed&lt;br /&gt;can do changes based on line numbers.&lt;br /&gt;&lt;br /&gt;but please note that in&lt;br /&gt;&lt;br /&gt;sed &amp;#39;15s/template0/template1/;17s/template0/template1/&amp;#39;&lt;br /&gt;&lt;br /&gt;separating sed commands with &amp;#39;;&amp;#39; is a non-posix extension and might not work with all the sed versions out there.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6153356144499938545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6153356144499938545'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1262089862631#c6153356144499938545' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1283070993'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-2082109070640858511</id><published>2009-12-16T22:11:09.884-05:00</published><updated>2009-12-16T22:11:09.884-05:00</updated><title type='text'>Ezekiel: nice tip about editing just part of the f...</title><content type='html'>Ezekiel: nice tip about editing just part of the file, then plopping it back in. I&amp;#39;d probably make a two copies and diff them before dd-ing back in place.&lt;br /&gt;&lt;br /&gt;Moltonel: thanks, I suspected sed had some simple solution like that.&lt;br /&gt;&lt;br /&gt;Johan Chang: No particular reason to use ramdisk over tmpfs. I&amp;#39;ll use tmpfs in my next demo to keep things balanced.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/2082109070640858511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/2082109070640858511'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1261019469884#c2082109070640858511' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-6621332482747937780</id><published>2009-12-16T20:51:55.108-05:00</published><updated>2009-12-16T20:51:55.108-05:00</updated><title type='text'>Why not just use tmpfs?</title><content type='html'>Why not just use tmpfs?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6621332482747937780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6621332482747937780'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1261014715108#c6621332482747937780' title=''/><author><name>Johan Chang</name><uri>http://www.blogger.com/profile/12182682353301580402</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='27' src='http://photos1.blogger.com/img/162/5236/320/10918878781.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1176650139'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-2123100263139693155</id><published>2009-12-16T13:16:26.649-05:00</published><updated>2009-12-16T13:16:26.649-05:00</updated><title type='text'>Ezekiel, I just did a quick check out of curiosity...</title><content type='html'>Ezekiel, I just did a quick check out of curiosity and found that sed -i does &amp;quot;in-place&amp;quot; edits the same way Perl does: by writing a new file and then moving it in place of the original. Worth noting in case anyone reading is misled by the term &amp;quot;in-place&amp;quot;.&lt;br /&gt;&lt;br /&gt;Is there anything more automated than Greg&amp;#39;s method that does true in-place edits of the blocks of an existing inode where they are? There are nice hex editors etc., but anything commonly distributed on e.g. Linux systems?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/2123100263139693155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/2123100263139693155'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260987386649#c2123100263139693155' title=''/><author><name>Jon Jensen</name><uri>http://www.blogger.com/profile/18273388885281263476</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='25' src='http://bp3.blogger.com/_rFXHDrokbpE/SJHpPosaIQI/AAAAAAAAAAM/GnqeZuLItOA/S220/jon1.png'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-932649491'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-5829762591772926384</id><published>2009-12-16T12:46:16.483-05:00</published><updated>2009-12-16T12:46:16.483-05:00</updated><title type='text'>Really awesome tricks, thanks Greg!

Add the &amp;quot...</title><content type='html'>Really awesome tricks, thanks Greg!&lt;br /&gt;&lt;br /&gt;Add the &amp;quot;-i&amp;quot; or &amp;quot;--in-place&amp;quot; flag to sed to make it modify in-place.&lt;br /&gt;&lt;br /&gt;Using dd to copy a piece of the file to another machine over ssh for editing (&amp;quot;vim -R&amp;quot; to open in &amp;quot;read-only&amp;quot; mode and refrain from creating a swap file on-disk. You can still write changes when finished.) might also be useful under stress; then use dd again to put the chunk right back over the file.&lt;br /&gt;&lt;br /&gt;Certainly enjoyed the post!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/5829762591772926384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/5829762591772926384'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260985576483#c5829762591772926384' title=''/><author><name>Ezekiel</name><uri>http://www.blogger.com/profile/08996802352493975163</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_JumTGmH_7DE/Sp64aCHX6NI/AAAAAAAAAC4/73whty-zGVc/S220/IMG_3452.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1277637259'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-6955630599662922934</id><published>2009-12-16T11:02:25.216-05:00</published><updated>2009-12-16T11:02:25.216-05:00</updated><title type='text'>Here, I looked it up and it is actually very simpl...</title><content type='html'>Here, I looked it up and it is actually very simple :&lt;br /&gt;&lt;br /&gt;sed 20,30s/template0/template1/&lt;br /&gt;will do the work only for lines 20 to 30.&lt;br /&gt;&lt;br /&gt;sed &amp;#39;15s/template0/template1/;17s/template0/template1/&amp;#39;&lt;br /&gt;will do the work specifically for line 15 and 17.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6955630599662922934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6955630599662922934'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260979345216#c6955630599662922934' title=''/><author><name>Moltonel</name><uri>http://www.blogger.com/profile/07836622731674773883</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1867171306'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-5196812174841794537</id><published>2009-12-16T09:34:37.505-05:00</published><updated>2009-12-16T09:34:37.505-05:00</updated><title type='text'>Platonides:

Yes, quite risky, but also quite effi...</title><content type='html'>Platonides:&lt;br /&gt;&lt;br /&gt;Yes, quite risky, but also quite efficient, and this work was done under a lot of pressure to get things done quick. In my defense, I did test the process out first by doing a head -10000 largefile &amp;gt; foobar, and then modifying foobar. Thanks for the stat -c trick!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/5196812174841794537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/5196812174841794537'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260974077505#c5196812174841794537' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-1121305743698607731</id><published>2009-12-16T09:31:04.273-05:00</published><updated>2009-12-16T09:31:04.273-05:00</updated><title type='text'>Moltonel:

True, about a piped-to-psql sed not bei...</title><content type='html'>Moltonel:&lt;br /&gt;&lt;br /&gt;True, about a piped-to-psql sed not being expensive compared to the other bits, but my worry there would be about replacing something it shouldn&amp;#39;t. It&amp;#39;s easy enough to know that &amp;#39;template0&amp;#39; is a unique string in the first few lines, but what if it appears buried in the data later on in the 50GB+ file? Also, in this case there were similar lines immediately after the three in question that I did *not* want to be replaced. If I did have to alter the number of characters, I probably would write a quick perl script to pipe it through. All the power of sed, plus I can tell it to stop processing after a certain point and just turn into a dumb pipe (e.g. (print and next) if $. &amp;gt; 300)&lt;br /&gt;&lt;br /&gt;As far as emacs, that&amp;#39;s seldom in my control on client boxes, and not all distros have a 64-bit compiled emacs available. (While even the 64-bit version has a limit (unlike vi), at that point I&amp;#39;m not likely to edit directly anyway, but use something like dd or split. :) But there are plenty of times when I&amp;#39;ve wanted to edit a few hundred meg file and emacs failed me so I had to use vi.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/1121305743698607731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/1121305743698607731'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260973864273#c1121305743698607731' title=''/><author><name>Greg Sabino Mullane</name><uri>http://www.blogger.com/profile/01284672712225991979</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-362101321'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-1024812319111289012</id><published>2009-12-16T09:07:30.434-05:00</published><updated>2009-12-16T09:07:30.434-05:00</updated><title type='text'>A quite risky operation.
I would have probably tak...</title><content type='html'>A quite risky operation.&lt;br /&gt;I would have probably taken out ~1 sector/page, edited it and then replaced the original one.&lt;br /&gt;&lt;br /&gt;Not the main for this post, since you already had the file loaded, but instead of manually copying the file size to the seek parameter, you can do &lt;br /&gt;dd seek=`stat -c %s data.20091215.pg` if=/dev/zero of=data.20091215.pg bs=1024 count=99999</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/1024812319111289012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/1024812319111289012'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260972450434#c1024812319111289012' title=''/><author><name>Platonides</name><uri>http://www.blogger.com/profile/08016918941147570779</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2035347756'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-7132276995357124230</id><published>2009-12-16T05:25:42.347-05:00</published><updated>2009-12-16T05:25:42.347-05:00</updated><title type='text'>This trick can come in handy, but gets painfull wh...</title><content type='html'>This trick can come in handy, but gets painfull when you need to alter the number of characters.&lt;br /&gt;&lt;br /&gt;What about piping sed output to psql, instead of asking sed to write a file ? I&amp;#39;ve used this technique on pg dumps before, out of lazyness when I could easily have edited the file. It feels natural enough.&lt;br /&gt;&lt;br /&gt;Dont know about stoping after N replacements with sed. Sure it&amp;#39;s possible, but dont want to dig in when you can just specify line numbers, or just ignore the negligible overhead of sed&amp;#39;ing the entire file (we&amp;#39;ll be waiting for postgres anyway, not sed).&lt;br /&gt;&lt;br /&gt;Oh, and apropos emacs, what kind of DBA is still using a 32bit OS these days ? :p</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/7132276995357124230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/7132276995357124230'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260959142347#c7132276995357124230' title=''/><author><name>Moltonel</name><uri>http://www.blogger.com/profile/07836622731674773883</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1867171306'/></entry><entry><id>tag:blogger.com,1999:blog-7997313029981170997.post-6532589691175940314</id><published>2009-12-15T22:04:02.180-05:00</published><updated>2009-12-15T22:04:02.180-05:00</updated><title type='text'>Nice work, and nice write-up!  Thanks for sharing!...</title><content type='html'>Nice work, and nice write-up!  Thanks for sharing!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6532589691175940314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7997313029981170997/8870197260645839445/comments/default/6532589691175940314'/><link rel='alternate' type='text/html' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html?showComment=1260932642180#c6532589691175940314' title=''/><author><name>Adrian</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.endpoint.com/2009/12/editing-large-files-in-place.html' ref='tag:blogger.com,1999:blog-7997313029981170997.post-8870197260645839445' source='http://www.blogger.com/feeds/7997313029981170997/posts/default/8870197260645839445' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-7964512'/></entry></feed>
