Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I sort of list current directory contents (including sub-directories recursively) (which is under svn) files info (path relative to current dir)?

I want this to get log in format like:


I wonder if it is possible and how to do such thing using svn and bash?

share|improve this question
I want to create such log in order to create an image using gource that would represent actual state or current revision svn files. so I would just add none as user name, 0 as timestamp, A as type. – user1078642 May 26 '12 at 22:37
if it's just the relative path, have you considered using find? For the relative path, with bash you have the globstar (disabled by default, but just a shopt -s globstar away). – njsg May 26 '12 at 23:02
I don't understand whether you're trying to list all files in your working copy or just the files under svn, nor where the none comes from (why not a user name? and why do you mention a timestamp and a type in your comment, there aren't any in your sample output). – Gilles May 28 '12 at 1:19
If you need this for gource, the wiki of gource has a page that explains how to use it with subversion code.google.com/p/gource/wiki/SVN – janos Aug 22 '12 at 9:02
up vote 1 down vote accepted

You may want to start with something like:

find . -name .svn -prune -o -print

This prints out all the files under ., without traversing into any .svn directories. I don't know what the none| part means, but you can pipe the output of find into sed, etc..

Another way is to start with

svn status -v

and filter the output as ncecssary.

share|improve this answer

Your Answer


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.