John W Kennedy wrote:
>
> You /cannot/ do what you want to do. These are variable-length
> records. You cannot rewrite them; you /must/ create a new file.
Sure he can - if you noticed the code earlier, you would note
that he read the file in, modified and pushed each line into
an array and then
On Aug 21, 2009, at 3:21 PM, zilore mumba wrote:
> Thanks very much Curtis.
> I will try your suggestions.
> Meanwhile, below is some of the text that appears in my files. The
> text to be replaced is in blue. Somewhere in the file there is nxny
> 1369 1380. 1369 is the correct one (37 x 37).
>
Thanks very much Curtis.
I will try your suggestions.
Meanwhile, below is some of the text that appears in my files. The text to be
replaced is in blue. Somewhere in the file there is nxny 1369 1380. 1369 is the
correct one (37 x 37).
The people who are writing the files (these are forecast wind
Not quite right, parenthesis have special meaning in Perl regular
expressions. Also \d{4} means any 4 digits while d{4} means . And
the "|" has no special meaning in the substitution part of the
expression The Learning Perl book has great chapters on this. It's
also a great reference for th
Further to my earlier mail, this is how I have constructed my search/replace
patterns
s/nxny d{4} 5041/nxny 5041/g; # nxny followed by 4 digits then 5041
replace by nxny 5041
s/(nx d{4}|ny 1)/nx 71|ny 71/g; # nx followed by 4 digits & ny 1 replace by
nx 71 ny 71
s/(d{4} x 1)/(
You are trying to solve the problem on the wrong end, let windows do it for you
- look into DFS
http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx
If DFS is not an option, then you have a few choices:
1. As you mentioned, use a database of some sort (could b
Thanks Bill for your time and effort.
Sorry the explanation of what am trying to do was not clear.
In the files I have fields which will appear as "nxny d1d1d1d1 d2d2d2d2"
d1d1d1d1 and d2d2d2d2 are two digit numbers.
d1d1d1d1. is always the same number (71x71=5041) and I want to keep,
but d2d2d2