just had this on a test and couldnt seem to figure it out
the goal is to selectively go through a directory "dir1/" and its subdirectories and copy all files starting in a,e,i,o,u and ending in ".py" to dir2/
is there a way to do that with cp? googling around gave a couple of suggestions that didnt seem to work either (one using grep, another using xargs)
any ideas? cant go back and change anything but im curious
thank
the goal is to selectively go through a directory "dir1/" and its subdirectories and copy all files starting in a,e,i,o,u and ending in ".py" to dir2/
is there a way to do that with cp? googling around gave a couple of suggestions that didnt seem to work either (one using grep, another using xargs)
any ideas? cant go back and change anything but im curious
thank