[14:24] <DammitJim> is there such a thing as defragmenting your hard drive on linux?
[15:57] <itnet7> DammitJim: the linux filesystem stores files differently from ntfs and fat, it's not necessary to defrag as I believe the extX filesystems are designed to minimize fragmentation during use.
[15:57] <DammitJim> I'm wondering why my computer is so slow, then
[15:57] <DammitJim> LOL
[15:58] <itnet7> There used to be some utilities like e2defrag that would allow you to "defrag" an unmounted partition, but I haven't heard about anyone really using it lately
[15:59] <itnet7> If it's just an older machine and you want to play around, check out this: http://www.webupd8.org/2009/10/defragmenting-linux-ext3-filesystems.html
[16:00] <itnet7> but make sure you backup anything important
[16:03] <DammitJim> no, I've had this machine for 6 months
[16:03] <DammitJim> and it's pretty beefy
[16:41] <tiemonster> mhall119: are you around today? I seem to remember you saying you'd be in Jax...
[16:45] <AndChat-> Hello florida
[16:45] <AndChat-> Grr
[16:45] <crashsystems1> That's better
[17:33] <maxolasersquad> .
[17:57] <maxolasersquad> In VM, is there a way I can pass the text of the current buffer as an argument in bash?
[17:57] <maxolasersquad> example: :!echo buffer_text
[17:57] <maxolasersquad> s/VM/vim
[18:06] <tiemonster> maxolasersquad: echo "hi" | vi -
[18:07] <tiemonster> is that what you're trying to do?
[18:08] <maxolasersquad> If my current screen had simply one line "Hello" then I'd like to be able to, for example, wc "Hello"
[18:08] <maxolasersquad> That example is kind of contrived, but is the kind of thing I would like to do.
[18:08] <maxolasersquad> More specifically, I have shell scripts that will run commands on our various Oracle Databases.
[18:09] <maxolasersquad> So I can say: nmsdev "SELECT * FROM foo;"
[18:09] <tiemonster> you want to edit the contents of the stdout in vim, though, right?
[18:09] <maxolasersquad> That will run that query on our nmsdev database.
[18:09] <maxolasersquad> I'd like to be able to write more complext Oracle command in vm, and then execute them.
[18:10] <tiemonster> oh
[18:10] <maxolasersquad> !nmsdev buffer_conetns
[18:10] <tiemonster> so you want to do bash command line editing in vim?
[18:10] <maxolasersquad> Ultimately, I want to be able to run SQL and PL/SQL from vim.
[18:11] <tiemonster> I don't know of a way to do it without saving the final command to a file
[18:13] <tiemonster> you could do this, for example: vi command && nmsdev "`cat command`"
[18:14] <tiemonster> That would have the benefit of saving the command in a file for future editing
[18:14] <maxolasersquad> Saving it to a file may ultimately be what I have to do.
[18:15] <tiemonster> it seems of more utility as well, if I understand the problem
[18:15] <maxolasersquad> In my dream world vi could be my Oracle IDE.
[18:15] <tiemonster> :-)
[18:16] <tiemonster> there is a way to run command line applications from within vi
[18:16] <tiemonster> so if you saved the file and then ran that argument from within vi, you could get that result
[18:17] <tiemonster> http://www.linux.com/archive/feed/57727
[18:17] <tiemonster> see the section called "Bang!"
[18:18] <maxolasersquad> Thanks
[18:18] <tiemonster> no prob
[18:18] <tiemonster> glad I could help
[18:18] <maxolasersquad> I just need to rewrite my scripts to accept file names.
[18:18] <maxolasersquad> brb
[18:18] <tiemonster> the bang method doesn't require you to save the file, does it?
[18:24] <tiemonster> oh, yes it does
[18:24] <tiemonster> still, though
[19:05] <Kristofer> Добрый вечер всем!