Search Results

Search: Posts Made By: vnn
9,062
Posted By vnn
Thank you - I am trying to get all these steps...
Thank you - I am trying to get all these steps automated. For now, the pipe works. But I would really like to edit the file in place...

---------- Post updated at 12:00 PM ---------- Previous...
9,062
Posted By vnn
no the sed command without -i does not work...
no the sed command without -i does not work either.
sed: can't read \remoteHostc$log.info: No such file or directory

---------- Post updated at 10:07 PM ---------- Previous update was at 03:30 PM...
9,062
Posted By vnn
$ls \\remoteHost\c$\log.info...
$ls \\remoteHost\c$\log.info (file://\\remoteHost\c$\log.info)
\remoteHostc$log.info

vnn@myHost /cygdrive/c
$dir \\remoteHost\c$\log.info (file://\\remoteHost\c$\log.info)...
9,062
Posted By vnn
executing sed on a remote server
Hi
I am trying to edit a text file on a remote server using sed from within a cygwin shell on a windows system.

$ sed -i "s/aaa/bbb/g" \\remoteHost\c$\log.info...
5,279
Posted By vnn
There is no newline between the...
There is no newline between the patterns<int>163</int> and <int>30</int>\n in your input request :

# cat ts1
web_request(abc,
"Method=null",
"TargetObjectId=/1",
BEGIN_ARGUMENTS,...
5,279
Posted By vnn
Any suggestions on this ? Thanks.
Any suggestions on this ?
Thanks.
5,279
Posted By vnn
The input file i am testing with has just one...
The input file i am testing with has just one line in it:
<int>163</int>\n <int>30</int>
This xml fragment is actually part of a web request recorded by a load testing tool. Since there are...
5,279
Posted By vnn
I tried the following in r.sed ...
I tried the following in r.sed

s/<int>\([0-9][0-9]*\)<\/int>\n\( *\)<int>\([0-9][0-9]*\)<\/int>/<int>\{requestId\}<\/int>/2

No luck. Same output as before:
<int>163</int>\n <int>30</int>
5,279
Posted By vnn
Hi, Here is my input file (r.txt): ...
Hi,
Here is my input file (r.txt):
<int>163</int>\n <int>30</int>
And my sed command in r.sed
s/<int>\([0-9]+\)<\/int>\n\( *\)<int>\([0-9]+\)<\/int>/<int>\{requestId\}<\/int>/2

sed -f r.sed...
5,279
Posted By vnn
Replacing part of a pattern in sed
Hi
I have a piece of xml that has a pattern like this
<int>159</int><int>30</int>
I want to find this pattern but only substitute the second part of the pattern to {rid1}.
Is that possible in...
Showing results 1 to 10 of 10

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