Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have splitted text files into parts and the parts that belong to a file is ended as part1,part2 ,... partn

I want to copy only part 03 files to another folder.

I would like to do it in windows but if its easier to do it in linux then ok, i have access to a linux virtual machine as well.

Note:- there is a space between part and 03

share|improve this question
    
Take a look at cygwin if you want to able to use the Unix-style command line utilities under Windows. –  JOTN Apr 4 '12 at 22:43

2 Answers 2

up vote 3 down vote accepted
copy *part3 d:\some\other\place
share|improve this answer
    
@klijo FYI: This is the Windows command. –  Darthfett Apr 4 '12 at 17:43
    
hi there is a space between the 3 and part. How can i handle them ? –  klijo Apr 5 '12 at 2:26
    
Use quotes around the space. –  Ignacio Vazquez-Abrams Apr 5 '12 at 2:27
    
i did this -> copy *"part 03" d:\test but it didnt work, next i tried doing copy *"part" d:\test. still it didnt work. –  klijo Apr 5 '12 at 2:35
    
ok this command worked copy * "part 03" * d:\test –  klijo Apr 5 '12 at 2:42

This is the linux equivalent:

cp *part3 /d/some/other/place
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.