cmdchallenge
cmdchallenge copied to clipboard
Remove files without extension problem
If I try to use
rm **/*.!(exe|doc)
I get "syntax error near unexpected token `('"
That line is a valid bash expansion.
While I don't think that this is a correct solution, this expansion could certainly be used to construct one.
I think this is caused by #84
The purpose of the site is to challenge you! Not show off how one or another command fails. Imagine you ssh into a machine and you have just bash of whatever version that doesn't support above solution. What do you do? Give up? Or come up with another, working solution?
That's the challenge.