BASH: reuse argument from same command -


i know can reuse first argument prævious command !:1; possible reuse typed argument command being entered? want cp blablabla blablabla.bak (and assume there other named files in directory); nice not have type blablabla on again.

yes; can use history expansion !# represent current line far:

cp blablabla !#:1.bak 

Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -