Timeline for search and Replace substring in mac address in a text file
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 31, 2017 at 0:45 | comment | added | Rocky M | Works without -E | |
| Oct 31, 2017 at 0:41 | vote | accept | Rocky M | ||
| Oct 31, 2017 at 0:41 | comment | added | Jeff Schaller♦ | No need for -E here, either. | |
| Oct 31, 2017 at 0:40 | comment | added | Rocky M | sed -En 's/( base-station-id ..:..:..:..:)..(:..)/\118\2/p' file.txt sed: -e expression #1, char 53: invalid reference \2 on `s' command's RHS | |
| Oct 31, 2017 at 0:38 | comment | added | Jeff Schaller♦ | Escape the parens | |
| Oct 31, 2017 at 0:37 | comment | added | Rocky M | I get an error: code sed -En 's/( base-station-id ..:..:..:..:)..(:..)/\118\2/p' file.txt sed: -e expression #1, char 53: invalid reference \2 on `s' command's RHS | |
| Oct 30, 2017 at 23:46 | history | answered | Jeff Schaller♦ | CC BY-SA 3.0 |