Sometimes I include many files in different directories in my project. For now I am adding all files one by one to my project before commit. Is there any Linux terminal comm
The above-mentioned solution with awk '{print $2}' does not unfortunately work if the files contain whitespaces. In such a case, this works fine:
svn st | grep "^?" | sed 's/^?[ \t]*//g' | sed 's/^/"/g' | sed 's/$/"/g' | xargs svn add
where
sed 's/^?[ \t]*//g'
removes the question mark and empty characters from the beginning and
sed 's/^/"/g' | sed 's/$/"/g'
encloses the filenames with quotes.