e.g.,
/usr/local/apache2/bin/apachectl args1 args2 args3 restart
/usr/local/apache2/bin/apachectl args1 args2 args3 stop
What I can think of is !!:2-4 stop
, but this needs to count index explicitly, is there any better solution?
This seems to be enough
!!:- stop
!!:2- Gets all the arguments starting from 2nd argument (except the last argument).
(link)