I'm doing a
find of all files with certain extension and then I copy them to a certain folder, but most of them are overwritten because they have the same name. How can I, with a Linux command, get the path of the file and replace it on the name file?
Right now I'm using this command:
find . -name "*.css" | xargs cp -t /folder/AllCssFiles/
so if I have two files on a certain path like this:
when I use the command I should get something like this on the AllCssFiles folder:
/something/abc/file.css (name of the file) /anyting/xyz/file.css