<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GNU Readline on Amit Agarwal Linux Blog</title>
    <link>/tags/gnu-readline/</link>
    <description>Recent content in GNU Readline on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 03 Aug 2012 03:04:58 +0000</lastBuildDate>
    
	<atom:link href="/tags/gnu-readline/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>gqlplus – sqlplus with readline (tab completion)</title>
      <link>/2012/08/03/gqlplus-sqlplus-readline-tab-completion/</link>
      <pubDate>Fri, 03 Aug 2012 03:04:58 +0000</pubDate>
      
      <guid>/2012/08/03/gqlplus-sqlplus-readline-tab-completion/</guid>
      <description>&lt;p&gt;&lt;a class=&#34;zem_slink&#34; title=&#34;Command-line completion&#34; href=&#34;http://en.wikipedia.org/wiki/Command-line_completion&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;Tab completion&lt;/a&gt; is something which is missing in the &lt;a class=&#34;zem_slink&#34; title=&#34;SQL*Plus&#34; href=&#34;http://en.wikipedia.org/wiki/SQL%2APlus&#34; rel=&#34;wikipedia&#34; target=&#34;_blank&#34;&gt;sqlplus&lt;/a&gt; and if you have lot of tables with long names or lot of columns then it is sufficiently  difficult to type them 🙂&lt;/p&gt;
&lt;p&gt;Here is a solution for this problem. Download and install &lt;a href=&#34;http://sourceforge.net/projects/gqlplus/&#34; target=&#34;_blank&#34;&gt;gqlplus&lt;/a&gt;. gqlplus is a replcement for sqlplus which supports completion for commands/tablenames and column names. Quite useful.&lt;/p&gt;
&lt;figure style=&#34;width: 240px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://www.flickr.com/photos/55793144@N00/44959557&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;Oracle SQL*Plus&#34; src=&#34;https://i0.wp.com/farm1.static.flickr.com/26/44959557_8db407a4ae_m.jpg?resize=240%2C189&#34; alt=&#34;Oracle SQL*Plus&#34; width=&#34;240&#34; height=&#34;189&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Oracle SQL*Plus (Photo credit: Manuel Cernuda)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul zemanta-article-ul-image&#34; style=&#34;margin-left: 0;&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;overflow: hidden; list-style: none; margin-top: 10px;&#34;&gt;
    &lt;a href=&#34;http://compscicafe.wordpress.com/2012/06/12/2-gb-limit-oracle-unix/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0 10px 10px 0; border: 0; display: block; float: left;&#34; src=&#34;https://i0.wp.com/i.zemanta.com/noimg_13_80_80.jpg?w=688&#34; alt=&#34;&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block;&#34; href=&#34;http://compscicafe.wordpress.com/2012/06/12/2-gb-limit-oracle-unix/&#34; target=&#34;_blank&#34;&gt;2 GB File limit on writing file using Oracle SQLPlus in Unix&lt;/a&gt;&lt;span style=&#34;display: block; font-size: 12px; margin: 10px 0 10px 0;&#34;&gt;(compscicafe.wordpress.com)&lt;/span&gt; &lt;div style=&#34;clear: both;&#34;&gt;
      &lt;hr style=&#34;margin: 0;&#34; /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;overflow: hidden; list-style: none; margin-top: 10px;&#34;&gt;
    &lt;a href=&#34;http://sqlandplsql.com/2012/06/27/find-version-of-oracle/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0 10px 10px 0; border: 0; display: block; float: left;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/noimg_06_80_80.jpg?w=688&#34; alt=&#34;&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block;&#34; href=&#34;http://sqlandplsql.com/2012/06/27/find-version-of-oracle/&#34; target=&#34;_blank&#34;&gt;Find version of Oracle&lt;/a&gt;&lt;span style=&#34;display: block; font-size: 12px; margin: 10px 0 10px 0;&#34;&gt;(sqlandplsql.com)&lt;/span&gt; &lt;div style=&#34;clear: both;&#34;&gt;
      &lt;hr style=&#34;margin: 0;&#34; /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;overflow: hidden; list-style: none; margin-top: 10px;&#34;&gt;
    &lt;a href=&#34;http://hs2n.wordpress.com/2012/06/12/oracle-using-sqlplus-and-sqlldr-on-databases-without-tnsnames-entry/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0 10px 10px 0; border: 0; display: block; float: left;&#34; src=&#34;https://i2.wp.com/i.zemanta.com/noimg_04_80_80.jpg?w=688&#34; alt=&#34;&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block;&#34; href=&#34;http://hs2n.wordpress.com/2012/06/12/oracle-using-sqlplus-and-sqlldr-on-databases-without-tnsnames-entry/&#34; target=&#34;_blank&#34;&gt;Oracle: Using SQLPLUS and SQLLDR on databases without TNSNAMES entry&lt;/a&gt;&lt;span style=&#34;display: block; font-size: 12px; margin: 10px 0 10px 0;&#34;&gt;(hs2n.wordpress.com)&lt;/span&gt; &lt;div style=&#34;clear: both;&#34;&gt;
      &lt;hr style=&#34;margin: 0;&#34; /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li-image zemanta-article-ul-li&#34; style=&#34;overflow: hidden; list-style: none; margin-top: 10px;&#34;&gt;
    &lt;a href=&#34;http://www.bobbydurrettdba.com/2012/07/12/newer-sqlplus-versions-give-better-plan-output/&#34; target=&#34;_blank&#34;&gt;&lt;img style=&#34;padding: 0; margin: 0 10px 10px 0; border: 0; display: block; float: left;&#34; src=&#34;https://i1.wp.com/i.zemanta.com/noimg_14_80_80.jpg?w=688&#34; alt=&#34;&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;a style=&#34;display: block;&#34; href=&#34;http://www.bobbydurrettdba.com/2012/07/12/newer-sqlplus-versions-give-better-plan-output/&#34; target=&#34;_blank&#34;&gt;Another Reason Why You Should Upgrade Your Oracle Client Software&lt;/a&gt;&lt;span style=&#34;display: block; font-size: 12px; margin: 10px 0 10px 0;&#34;&gt;(bobbydurrettdba.com)&lt;/span&gt; &lt;div style=&#34;clear: both;&#34;&gt;
      &lt;hr style=&#34;margin: 0;&#34; /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/?px&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: none; float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;
&lt;/div&gt;</description>
    </item>
    
    <item>
      <title>Make any command read line enabled (on *nix)</title>
      <link>/2010/11/25/command-read-line-enabled-nix/</link>
      <pubDate>Thu, 25 Nov 2010 04:02:18 +0000</pubDate>
      
      <guid>/2010/11/25/command-read-line-enabled-nix/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Make any command read line enabled (on *nix)&lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      rlwrap sqlite3 database.db
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;Enable &lt;a class=&#34;zem_slink&#34; title=&#34;GNU readline&#34; rel=&#34;homepage&#34; href=&#34;http://tiswww.tis.case.edu/%7Echet/readline/rltop.html&#34;&gt;readline&lt;/a&gt; even if the &lt;a class=&#34;zem_slink&#34; title=&#34;Command-line interface&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Command-line_interface&#34;&gt;command line&lt;/a&gt; application is not using it.&lt;/p&gt;
&lt;p&gt;* View this command to comment, vote or add to favourites * View all commands by pykler&lt;/p&gt;
&lt;p&gt;commandlinefu.com&lt;/p&gt;
&lt;p&gt;by David Winterbottom (codeinthehole.com)&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;zem_slink&#34; title=&#34;Uniform Resource Locator&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Uniform_Resource_Locator&#34;&gt;URL&lt;/a&gt;: &lt;a href=&#34;http://feedproxy.google.com/~r/Command-line-fu/~3/mKEgYoyHCMA/make-any-command-read-line-enabled-on-nix&#34;&gt;http://feedproxy.google.com/~r/Command-line-fu/~3/mKEgYoyHCMA/make-any-command-read-line-enabled-on-nix&lt;/a&gt;&lt;/p&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://blog.amit-agarwal.co.in/2010/09/01/commands-output-input-command-piping-bind-key-sequence-bash/&#34;&gt;Use the last command&amp;#8217;s output as input to a command without piping and bind to it to a key sequence in bash.&lt;/a&gt; (amit-agarwal.co.in)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.kungfugrippe.com/post/929042234/dterm&#34;&gt;DTerm: A command line anywhere and everywhere Oh, man. DTerm =&amp;#8230;&lt;/a&gt; (kungfugrippe.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://hackerz4u.com/python/python-command-line-linux-bash-command-line/&#34;&gt;Python command line = Linux Bash command line&lt;/a&gt; (hackerz4u.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://infosthetics.com/archives/2010/10/data_hacks_ascii_bar_charts.html&#34;&gt;Data Hacks: Command Line ASCII Bar Charts&lt;/a&gt; (infosthetics.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.readwriteweb.com/hack/2010/09/commandlinefu-linux-command-he.php&#34;&gt;Hack of the Day: commandlinefu &amp;#8211; Linux Command Heaven&lt;/a&gt; (readwriteweb.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: medium none; float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;span class=&#34;zem-script more-related pretty-attribution&#34;&gt;&lt;/span&gt;
&lt;/div&gt;</description>
    </item>
    
  </channel>
</rss>
