1

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?

1 Answer 1

1

This seems to be enough

!!:- stop

!!:2- Gets all the arguments starting from 2nd argument (except the last argument).

(link)

Not the answer you're looking for? Browse other questions tagged or ask your own question.