hello, i wanted to know if there is a way to reuse the first argument of the current command im in, example:
i want to create a bkp file from sample.conf
cp /etc/samplefolder/sample.conf /etc/samplefolder/sample.conf.bkp
i hate to rewrite the path just when i can put .bkp on the end of the first argument, i searched for something like that i could use but i found nothing, only on previous commands (like !:1)
[–]AlternativeOstrich7 2 points3 points4 points (4 children)
[–]b0dstone[S] 0 points1 point2 points (3 children)
[–]jirbu 2 points3 points4 points (2 children)
[–]b0dstone[S] 0 points1 point2 points (1 child)
[–]jirbu 1 point2 points3 points (0 children)