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
Post a Comment