I have been trying to use 'sed' (for the first time!) to
search and replace '1' if and only if it appears after
[A-H]. ie replace A1, B1, C1, D1 etc to give A<new> B<new> C<new>
I have used the following command in 'vi':
(where -27.3 is the replace string)
As I want to do this for a sequence of numbers and for a number of files
I thought I'd convert the above (given to me) for use in a 'sed' program.
The problem is that I cannot get it to work.
Anyone know how this should be parsed for 'sed'?
I have tried things like s/^\([A-H]\)1/\1-27.3/g etc but just get
Please reply by email and posting, my newserver is flakey...
Thanks very much.
David Kennedy, The Queen's University of Belfast.