=== excid3|mbp is now known as clippy === clippy is now known as excid3|mbp [14:24] is there such a thing as defragmenting your hard drive on linux? [15:57] 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] I'm wondering why my computer is so slow, then [15:57] LOL [15:58] 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] 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] but make sure you backup anything important [16:03] no, I've had this machine for 6 months [16:03] and it's pretty beefy === drspeedo is now known as drspeedo|afk [16:41] mhall119: are you around today? I seem to remember you saying you'd be in Jax... [16:45] Hello florida [16:45] Grr [16:45] That's better [17:33] . [17:57] In VM, is there a way I can pass the text of the current buffer as an argument in bash? [17:57] example: :!echo buffer_text [17:57] s/VM/vim [18:06] maxolasersquad: echo "hi" | vi - [18:07] is that what you're trying to do? [18:08] If my current screen had simply one line "Hello" then I'd like to be able to, for example, wc "Hello" [18:08] That example is kind of contrived, but is the kind of thing I would like to do. [18:08] More specifically, I have shell scripts that will run commands on our various Oracle Databases. [18:09] So I can say: nmsdev "SELECT * FROM foo;" [18:09] you want to edit the contents of the stdout in vim, though, right? [18:09] That will run that query on our nmsdev database. [18:09] I'd like to be able to write more complext Oracle command in vm, and then execute them. [18:10] oh [18:10] !nmsdev buffer_conetns [18:10] so you want to do bash command line editing in vim? [18:10] Ultimately, I want to be able to run SQL and PL/SQL from vim. [18:11] I don't know of a way to do it without saving the final command to a file [18:13] you could do this, for example: vi command && nmsdev "`cat command`" [18:14] That would have the benefit of saving the command in a file for future editing [18:14] Saving it to a file may ultimately be what I have to do. [18:15] it seems of more utility as well, if I understand the problem [18:15] In my dream world vi could be my Oracle IDE. [18:15] :-) [18:16] there is a way to run command line applications from within vi [18:16] so if you saved the file and then ran that argument from within vi, you could get that result [18:17] http://www.linux.com/archive/feed/57727 [18:17] see the section called "Bang!" [18:18] Thanks [18:18] no prob [18:18] glad I could help [18:18] I just need to rewrite my scripts to accept file names. [18:18] brb [18:18] the bang method doesn't require you to save the file, does it? [18:24] oh, yes it does [18:24] still, though [19:05] Добрый вечер всем! === drspeedo is now known as drspeedo|afk === drspeedo|afk is now known as drspeedo === drspeedo is now known as drspeedo|away