[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Note: this isn't always consitent across Unices.





Christopher Fowler wrote:

>Is there a trick to executing commands in the bash history. 
>
># history | grep long_command
># exec 683
>
>
>I've written a perl script that takes the bash history as stdin and then
>executes the command
>
># history | /tmp/history.pl 683
>
>Works but not an elegant solution.
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
&gt;<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt;
&gt;  
&gt;



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00428" href="msg00428.html">[ale] Bash history</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00433" href="msg00433.html">[ale] Bash history</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00426" href="msg00426.html">[ale] Bash history</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00426.html">[ale] Bash history</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00428.html">[ale] Bash history</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00426.html">[ale] Bash history</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00428.html">[ale] Bash history</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00427"><strong>Date</strong></a></li>
<li><a href="threads.html#00427"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>