Search Results

Search: Posts Made By: pcpinkerton
28,794
Posted By pcpinkerton
yes it does look at the second to last line in...
yes it does look at the second to last line in code above last line below

The cd "..." is the directory location where the .svn Directory lives and where the svn relocate command needs to be...
28,794
Posted By pcpinkerton
I'll try that previously I used nawk to "add"...
I'll try that previously I used nawk to "add" quote to the input file but the output file was still broken. I'll make you changes and let you know

---------- Post updated at 01:04 PM ----------...
28,794
Posted By pcpinkerton
when ran numbers are the same. what was cut and...
when ran numbers are the same. what was cut and pasted was mixed. the numbers reflect suggested variations.

The script does work I run it manually without the ticks

I already know where the the...
28,794
Posted By pcpinkerton
output you requested Recap: OK I sent...
output you requested

Recap:
OK

I sent this output once before the first time I was asked (remember I only grep'ed for the hostURL)


sed -n l .svn/entries


sample of Subversion metadata...
28,794
Posted By pcpinkerton
sorry two webpages open. never used this before ...
sorry two webpages open. never used this before
go to #19 console out put shows the output file name
28,794
Posted By pcpinkerton
more details here ...
more details here
https://www.unix.com/shell-programming-scripting/177308-help-cannot-concatenate-ksh-variables-3.html#post302600933
28,794
Posted By pcpinkerton
output wanted: cd /PATH svn relocate...
output wanted:

cd /PATH
svn relocate OldRepo NewRepo


example
cd AgentWebPages/AgentWebPages/Source/Distrib
svn relocate https://svn01g.gdc.nwie.net/svn01p/svn/Repositories/ePDS2...
28,794
Posted By pcpinkerton
the while loop that replaced the for loop: ...
the while loop that replaced the for loop:

cat "${wcfiles}" | while read i
do


I agree I am not a programmer. Only started ksh scripts a few years back and not too often.
My goal was to...
28,794
Posted By pcpinkerton
Output using while loop: snip... cd...
Output using while loop:

snip...
cd AgncyInfoInProc/SalesApplication/Source/bc
svn relocate https://svn01g.gdc.nwie.net/svn01p/svn/Repositories/SWAT https://svnprod.nwie.net/svn/SWAT
cd...
28,794
Posted By pcpinkerton
no console output, but output file still has...
no console output, but output file still has issues
https://svnprod.nwie.net/svn/SWAT
cd ABIIntranet/ABA/Source
svn relocate https://svn01g.gdc.nwie.net/svn01p/svn/Repositories/SWAT...
28,794
Posted By pcpinkerton
ksh script output not as expected a continuation...
ksh script output not as expected a continuation of "Help cannot concatenate variables" .

The issue seems to be the Input source file contains PATH with spaces in some of the directory names....
28,794
Posted By pcpinkerton
Previously when using the backtick it did not...
Previously when using the backtick it did not work at all.

Now with backticks only on the OldRepo line it is working

I changed this also

svnCommand="svn relocate"
set svnCommand

echo -e...
28,794
Posted By pcpinkerton
results: cd /path/to/destin\ ation$ ...
results:

cd /path/to/destin\
ation$
svn relocate OldUrl/path/destin\
ationNewUrl/path/destination$

seems a next line is inserted and no space between first destination and URL

2nd line...
28,794
Posted By pcpinkerton
to find path and create file pathList.dat file ...
to find path and create file pathList.dat file

find /webdata/tmpDNAbld -type d -exec sh -c '[ -d "$1"/.svn ] || exit 1' sh {} \; -print | cat > pathList.dat


what the "entries file" looks like...
28,794
Posted By pcpinkerton
almost got it just changed to this (space not...
almost got it just changed to this (space not working yet):

echo -e "svn relocate\c" $OldRepo" " $NewRepo
28,794
Posted By pcpinkerton
this was an improvement. Both strings are now...
this was an improvement. Both strings are now echo'ed together. Thanks

Now I just need "svn relocate" in the front of them and a space between OldRep and NewRep.
28,794
Posted By pcpinkerton
The script was written on a RedHat linux server...
The script was written on a RedHat linux server using vi
The script was ran on the same Linux server using directories copied from a Windows server to a NAS mounted to the Linux server.

This post...
28,794
Posted By pcpinkerton
Help cannot concatenate Ksh variables ?
Cannot combine these two strings into one line, either as a 3rd variable or echo or printing ? Frustrating.

for i in `cat /scripts/pathList.dat`
do
OldRepo= grep Oldhostname...
2,368
Posted By pcpinkerton
Help Create dynamic ksh script from a script
I am currently running 2 scripts to gather data for a 3rd script and would like to combine the 2 scripts into one. Having issues with the final output format.

Note cannot post URL so replaced...
Forum: Red Hat 02-13-2012
4,908
Posted By pcpinkerton
Thanks for the suggestion but how would that fit...
Thanks for the suggestion but how would that fit into a for loop?

for i in ${list}
do
command
done
Forum: Red Hat 02-13-2012
4,908
Posted By pcpinkerton
KSH script help needed ( nice error trap routine ?)
I am running a script that runs a loop and executes a command on ${i} until the end of the for loop.

From time to time the command generates an error ( which is good) for example ERROR0005:
...
Showing results 1 to 21 of 21

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