I have a folder in which I have around 4k files. Some of these files start with a a ?
or !
character. I need to delete them but can't find an expression that would do so:
rm -f ./?*
just deletes everything. I can possibly use grep
on ls and pipe it through xargs
and move files to another folder but I was hoping there was a proper way of doing this. Need help on both the ?
and !
files.