LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-15-2011, 04:29 AM   #1
archieval
Member
 
Registered: Apr 2007
Location: Philippines
Distribution: Kubuntu, Ubuntu, CentOS
Posts: 282

Rep: Reputation: 41
Question 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
 
Old 06-15-2011, 02:31 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
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)?
 
Old 06-15-2011, 02:32 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
Quote:
Originally Posted by archieval View Post
I am having lock error and permission errors so I cannot checkout manually using CVS.
Best fix those first though.
 
  


Reply

Tags
cvs, rcs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore MySQL Dump File But I want it to restore with different names? helptonewbie Linux - Newbie 5 07-08-2009 05:09 AM
bash: renaming file extension based on actual file type alekone Linux - General 9 12-28-2008 09:12 AM
actual source file? jsheffie Solaris / OpenSolaris 15 07-20-2005 07:53 AM
restore file or dir from dump file brumela Linux - Newbie 3 09-08-2004 04:31 AM
how to create a link into actual file? elmerliu Fedora 1 08-14-2004 08:56 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration