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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -