I have a list of files with numeric file names (e.g. #.php, ##.php or ###.php) that I’d like to copy/move in one fell swoop.
Does anyone know of an ls or grep combo command to accomplish this objective?
I do have this much:
ls -al | grep "[0-9].php"
You can use regular expression when listing files:
This was an easy and minimalistic approach at the above problem but I think a better solution is
as UncleZeiv explains below.