LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to restore the actual file from my_file.c,v file (https://www.linuxquestions.org/questions/linux-software-2/how-to-restore-the-actual-file-from-my_file-c-v-file-886446/)

archieval 06-15-2011 04:29 AM

How to restore the actual file from my_file.c,v file
 
Hello,

I am browsing our repository and I want to get this folder but all of the files there have ",v" in the end of their filenames and if you open each file, they have some written data which are headers for version control before the actual content of the file. I want to extract the actual content to make the file my_file.c,v --> my_file.c. Is there a command to do this?

I am having lock error and permission errors so I cannot checkout manually using CVS.

Regards,
archieval

unSpawn 06-15-2011 02:31 PM

Try 'co -q -r -p /path/to/my_file.c,v > /path/to/CVS/workdir/my_file.c' (or say ':.!co -q -r -p /path/to/my_file.c,v' inside vi)?

unSpawn 06-15-2011 02:32 PM

Quote:

Originally Posted by archieval (Post 4386167)
I am having lock error and permission errors so I cannot checkout manually using CVS.

Best fix those first though.


All times are GMT -5. The time now is 11:15 PM.