I run the svn status got the modified files :
svn status
? .settings
? .buildpath
? .directory
A A.php
M B.php
D html/C.html
M html/D.fr
M api/E.api
M F.php
..
After I want to keep all of these files
zcvf MY.tar.gz all files that svn stat display
(not include ? just M,A,D)
My idea is to create the python script can run the shell,because right now to do this I just copy the file name one by one.
zcvf MY.tar.gz all the files that we run svn stat
Anybody could guide how to do this or some related tutorial? But if you think it difficult than copy && paste I will ignore my trying?
thanks
I don’t see why you would use python for this if you can do it in a single line of code in the shell.
I used
grepto only select lines that are modified, if you want all files that svn status lists (also those that are added / deleted) you can leave that part out. I’ve usedsedhere to delete the first part of every line, I’m sure there is an easier way to do that but I can’t think of one right now.