Cvs update output is bad, use it with grep: Difference between revisions
From Andreida
(Created page with "This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting) <pre> cat cvsupdate #!/bin/bash cvs -n up 2>&1| grep -v 'cvs...") |
No edit summary |
||
Line 1: | Line 1: | ||
One way: |
|||
cvs status $1 2>&1 | grep Status: | grep -v Up-to-date |
|||
This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting) |
This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting) |
||
<pre> |
<pre> |
Revision as of 17:30, 6 June 2023
One way:
cvs status $1 2>&1 | grep Status: | grep -v Up-to-date
This works of course only for the english language, so perhaps you'll have to change it. (-n -> don't do anyting)
cat cvsupdate #!/bin/bash cvs -n up 2>&1| grep -v 'cvs update: Updating'
To do this for some dirs at once:
cat cvsupdate-all #!/bin/bash for file in ~/work/Pr* do cd $file #pwd cvsupdate done
example to do cvs up for some dirs at once and do some stuff or each dir and do some stuff afterwards:
cat cvs-up-all #!/bin/bash for file in ~/work/Pr* do cd $file pwd cvs update -dP make develop done createxml