Search Results

Search: Posts Made By: bsrepellant
39,311
Posted By bsrepellant
I guess I don't understand what you are expecting...
I guess I don't understand what you are expecting in your output.
Let's step back and try to determine what you are expecting in your output.

Your sample output...

.
.
svn relocate cd...
7,527
Posted By bsrepellant
Can't you change your query to spool only those...
Can't you change your query to spool only those records where the field equals what you are looking for?
I think that would be the easiest way.
39,311
Posted By bsrepellant
Not knowing how you changed your loop. (Using...
Not knowing how you changed your loop. (Using original code provided)
I think this is what you want but this whole script is not very efficient..


for i in `cat ${wcfiles}`
do
...
39,311
Posted By bsrepellant
Your echoing set values for your variables. ...
Your echoing set values for your variables.
If you don't want to display OldRep and NewRepo if empty, you need to program for that.
39,311
Posted By bsrepellant
Try this: OldRepo=`grep svn01g.gdc...
Try this:

OldRepo=`grep svn01g.gdc ${i}/.svn/entries 2>/dev/null | tail -1 | tr -d '\n'`
NewRepo=`grep svn01g.gdc ${i}/.svn/entries 2>/dev/null| tail -1 | sed '/svn01g.gdc/...
1,987
Posted By bsrepellant
Oops. I didn't read the whole thing...
Oops.
I didn't read the whole thing...
1,987
Posted By bsrepellant
standard out (if any) will then show up in the...
standard out (if any) will then show up in the crontab owners mail if I am not mistaken.
39,311
Posted By bsrepellant
Sorry for stepping on you methyl. That was your...
Sorry for stepping on you methyl. That was your discovery. I'll back off...
39,311
Posted By bsrepellant
The character left of the 1 key. Example: ...
The character left of the 1 key.
Example:
OldRepo=`grep Oldhostname ${i}/.svn/entries | tail -1`
39,311
Posted By bsrepellant
There was no confirmation from methyl's post...
There was no confirmation from methyl's post about the missing backticks that assign the variables. Make sure this is not a typo.
39,311
Posted By bsrepellant
Don't know why it wouldn't. What shell are you...
Don't know why it wouldn't. What shell are you using?

echo "svn relocate " $OldRepo " " $NewRepo
echo "svn relocate ${OldRepo} ${NewRepo} " should work also.
39,311
Posted By bsrepellant
Try updating this line. OldRepo= grep...
Try updating this line.
OldRepo= grep Oldhostname ${i}/.svn/entries | tail -1to
OldRepo= grep Oldhostname ${i}/.svn/entries | tail -1 | tr -d '\n'
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 09:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy