Re: reuse the history

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



ann kok wrote:
Hi all


I want to reuse command in the shell historys Which command I can only select "traceroute 192.168.0.5" to run?

$ history |grep traceroute
   26  traceroute 192.168.0.5
   27  traceroute -n 192.168.0.5
   28  traceroute 192.168.0.10
   29  traceroute yahoo.com
   46  traceroute 192.168.0.33


eg: history |grep traceroute | awk '{ print$2 " " print$3}' | grep 26
Thank you


$ !26
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux