I have bash script that use username and password as argument, so I what to delete that command from history,
I've tried to add:
history -d ${history 1 | awk '{print $1}'}
But I get:
${history 1 | awk '{print $1}'}: bad substitution
Then I tried:
history -d ${history 1 | awk '{print $1}'}
But nothig is happened.
I also try to wite the last command's number to another file and then cat
history -d $(cat tst.txt)
and also nothing happened...
Is there any suggestion for doing that?
Thanks a lot!