/srv/irclogs.ubuntu.com/2010/12/02/#ubuntu-us-fl.txt

=== excid3|mbp is now known as clippy
=== clippy is now known as excid3|mbp
DammitJimis there such a thing as defragmenting your hard drive on linux?14:24
itnet7DammitJim: 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
DammitJimI'm wondering why my computer is so slow, then15:57
DammitJimLOL15:57
itnet7There 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 lately15:58
itnet7If 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.html15:59
itnet7but make sure you backup anything important16:00
DammitJimno, I've had this machine for 6 months16:03
DammitJimand it's pretty beefy16:03
=== drspeedo is now known as drspeedo|afk
tiemonstermhall119: are you around today? I seem to remember you saying you'd be in Jax...16:41
AndChat-Hello florida16:45
AndChat-Grr16:45
crashsystems1That's better16:45
maxolasersquad.17:33
maxolasersquadIn VM, is there a way I can pass the text of the current buffer as an argument in bash?17:57
maxolasersquadexample: :!echo buffer_text17:57
maxolasersquads/VM/vim17:57
tiemonstermaxolasersquad: echo "hi" | vi -18:06
tiemonsteris that what you're trying to do?18:07
maxolasersquadIf my current screen had simply one line "Hello" then I'd like to be able to, for example, wc "Hello"18:08
maxolasersquadThat example is kind of contrived, but is the kind of thing I would like to do.18:08
maxolasersquadMore specifically, I have shell scripts that will run commands on our various Oracle Databases.18:08
maxolasersquadSo I can say: nmsdev "SELECT * FROM foo;"18:09
tiemonsteryou want to edit the contents of the stdout in vim, though, right?18:09
maxolasersquadThat will run that query on our nmsdev database.18:09
maxolasersquadI'd like to be able to write more complext Oracle command in vm, and then execute them.18:09
tiemonsteroh18:10
maxolasersquad!nmsdev buffer_conetns18:10
tiemonsterso you want to do bash command line editing in vim?18:10
maxolasersquadUltimately, I want to be able to run SQL and PL/SQL from vim.18:10
tiemonsterI don't know of a way to do it without saving the final command to a file18:11
tiemonsteryou could do this, for example: vi command && nmsdev "`cat command`"18:13
tiemonsterThat would have the benefit of saving the command in a file for future editing18:14
maxolasersquadSaving it to a file may ultimately be what I have to do.18:14
tiemonsterit seems of more utility as well, if I understand the problem18:15
maxolasersquadIn my dream world vi could be my Oracle IDE.18:15
tiemonster:-)18:15
tiemonsterthere is a way to run command line applications from within vi18:16
tiemonsterso if you saved the file and then ran that argument from within vi, you could get that result18:16
tiemonsterhttp://www.linux.com/archive/feed/5772718:17
tiemonstersee the section called "Bang!"18:17
maxolasersquadThanks18:18
tiemonsterno prob18:18
tiemonsterglad I could help18:18
maxolasersquadI just need to rewrite my scripts to accept file names.18:18
maxolasersquadbrb18:18
tiemonsterthe bang method doesn't require you to save the file, does it?18:18
tiemonsteroh, yes it does18:24
tiemonsterstill, though18:24
KristoferДобрый вечер всем!19:05
=== drspeedo is now known as drspeedo|afk
=== drspeedo|afk is now known as drspeedo
=== drspeedo is now known as drspeedo|away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!