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

[no subject]



# 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.



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00427" href="msg00427.html">[ale] Bash history</a></strong>
<ul><li><em>From:</em> smeadspam100 at speedfactory.net (W. Keith Miller)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00425.html">[ale] zv5000</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00427.html">[ale] Bash history</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00443.html">[ale] [Re]Configuring X11 on SuSE-9.3</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00427.html">[ale] Bash history</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00426"><strong>Date</strong></a></li>
<li><a href="threads.html#00426"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

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