I have a directory where I have the following set of files:
cheatsheetold.aux
cheatsheetold.log
cheatsheetold.out
cheatsheetold.pdf
cheatsheetold.synctex.gz
cheatsheetold.tex
cheatsheetnew.aux
cheatsheetnew.log
cheatsheetnew.out
cheatsheetnew.pdf
cheatsheetnew.synctex.gz
cheatsheetnew.tex
What I want to do is to remove all the cheetsheetold.
cheatsheetold.aux
cheatsheetold.log
cheatsheetold.out
cheatsheetold.pdf
cheatsheetold.synctex.gz
cheatsheetold.tex
without touching the cheatsheetnew
cheatsheetnew.aux
cheatsheetnew.log
cheatsheetnew.out
cheatsheetnew.pdf
cheatsheetnew.synctex.gz
cheatsheetnew.tex
I already had a look at this other question, but it didn't solve the problem as there is a complete set of extension for both file names
rm -- cheatsheetold.*
– fraleone Feb 09 '20 at 14:25echo $BASH
should print out something when you are on bash as shouldecho $SHELL
in both cases might most likely be/bin/bash
which is the quasi standard path to the bash shell (for instance on fedora and ubuntu) – fraleone Feb 09 '20 at 14:33