user32882
user32882

Reputation: 5877

Get particular line using svn command line

I have a simple question. Is there a basic syntax to simply get the raw text output for a particular line in a particular file for a particular version using svn? I am looking for something like this. Let's say I want line 500 from MyFile.FOR version 6382:

svn line 500 MyFile.FOR 6382

How can I achieve this? Thanks

Upvotes: 1

Views: 52

Answers (1)

uzsolt
uzsolt

Reputation: 6027

I think you should do something similar:

svn cat MyFile.FOR -r6382 | sed -n '500p'

I hope this solution is clear - if not please let me know.

Upvotes: 1

Related Questions