need help in cp command
i was changing one dos command to linux command, its like:
copy c:\file.mdl c:\data\file_dd.m* That is the file extension should be the same as the source file(we can have file.mdl, file.mdo..).In linux i did this cp /folder1/file.mdl /folder/folder1/file_dd.md* i am getting md* instead of the correct file extension. Can anybody help me :( :( i am just a beginer |
This will work
cp /folder1/file.md? /folder/folder1/ or for anything with .md* extension even more than 3 chars cp /folder1/file.md* /folder/folder1/ |
its because that copies file.mdl to /folderfolder/file_dd.md, I think you want cp /folder/file.md* /folder/folder1/ which copies any files in /folder with any extension beginning with md to /folder/folder1
|
Try this bash script, lets call it 'kacp' (kick ass copy):
Code:
#!/bin/bash Code:
kacp file.mdl |
All times are GMT -5. The time now is 01:38 AM. |