Using bash on Ubuntu 22, I want to make a simple alias command.
It would be something like this:
alias fuba='export tgt_foo=$1;touch ${tgt_foo}.log'
So, if I run it like ">$ fuba trial7", then the filename "trial7.log" will be touched, and I can refer the $tgt_foo variable afterwords...
I wish this would be simple and easy, but failed in many ways.;;;
Some experts explain it with "making function", but I feel like "not that much ;-("...
Is there simple way to make it?
Please give me some clue.
Thank you for reading till here.