Need help with sed syntax
From: Petterson Mikael (mikael.petterson_at_era.ericsson.se)
Date: 09/29/03
- Next message: laura fairhead: "Re: google history not causal at comp.unix.shell"
- Previous message: Adam Price: "Re: guide me"
- Next in thread: laura fairhead: "Re: Need help with sed syntax"
- Reply: laura fairhead: "Re: Need help with sed syntax"
- Reply: Ian Fitchet: "Re: Need help with sed syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Sep 2003 09:14:28 +0200
Hi,
I am testing the following line to see if it is possible to replace row
3 with,
public static final int HW_TEST_RESULT_DEF_VALUE = 0;
I am using the folloing sed line on the file below:
sed 's/^\(public static final int [A-Z_]* = \);/\10;/'
StrxDeviceGroupMo.java
but I see no change in the output on screen.
Any ideas what could be wrong?
//Mikael
Part of StrxDeviceGroupMo.java
===============================
public static final String HW_TEST_RESULT_ATTR_TYPE = "Integer";
public static final String HW_TEST_RESULT =
"hwTestResult";
public static final int HW_TEST_RESULT_DEF_VALUE = ;
public static final int HW_TEST_RESULT_STP_VALUE = 1;
public static final int HW_TEST_RESULT_MIN_VALUE = 0;
public static final int HW_TEST_RESULT_MAX_VALUE = 3;
public static final String HW_TEST_RESULT_MANDATORY = "optional";
public static final String HW_TEST_RESULT_READWRITE = "readOnly";
public static final String HW_TEST_RESULT_PERSISTENT= "false";
- Next message: laura fairhead: "Re: google history not causal at comp.unix.shell"
- Previous message: Adam Price: "Re: guide me"
- Next in thread: laura fairhead: "Re: Need help with sed syntax"
- Reply: laura fairhead: "Re: Need help with sed syntax"
- Reply: Ian Fitchet: "Re: Need help with sed syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]