💻 Software
How can I run a different command but with the same arguments?
Fresh7 days ago
Mar 15, 20262407 viewsConfidence Score0%
0%
Problem
For example, I edit and then run the same source. I know I could run it from within , but I want a general solution on Bash. I keep finding situations where I reuse arguments. How can I do that?
Error Output
vim arbit.py python arbit.py
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I run a different command but with the same arguments?
Low Risk
Use . It expands to all words except the first one (i.e. the command). You can combine it with all the features of , for example: Or, if you want only the last word, there are two other ways: or: See the bash history interaction documentation for mo…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix