How to copy all non hidden files in your current directory with names not beginning with a digit to other directory?
Here we will use the cp command to copy all non-hidden files.
and we will copy only those files which are not beginning with a
digit and such file we will identify with the help of regex
[^0-9]*
In this regex ^ symbol in regex is like a not. [^0-9]
this indicates not any digit and * indicates all. so we are copying
all files which are not starting with a digit by using the
following command.
cp [^0-9]* path_of_dir/
path_of_dir is a path where you want to copy all these files.
Get Answers For Free
Most questions answered within 1 hours.