Artificial intelligent assistant

how to remove files that could be with lower/upper case how to remove files that could be with **lower/upper** case for example, the file_name could be: * STOCK.Repo or * Stock.REPO or * stOCK.repo or * stock.repo * ... etc I would run: rm -f $file_name **_the goal is to remove file as stock.repo that could be in lower/upper case on remote machine_**

For Bash-specific solution:


$ shopt -s nocaseglob


and then run the `rm` command.

Note to unset this option, use `shopt -u nocaseglob`

For completeness, I would point out an alternative but less elegant solution:


$ rm [sS][tT][oO][cC][kK].[rR][eE][pP][oO]

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 244d05acf84a9c76f12a5265352bf054