Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Sed help
Name: vibhor_agarwalin Date: February 7, 2005 at 06:00:47 Pacific OS: Solaris CPU/Ram: sparc
Comment:
Hi,
In sed it sometimes uses sed -e '.../.../.../\1' whats the use of \1 or any other number there.
Name: vgersh99 Date: February 7, 2005 at 06:11:47 Pacific
Reply:
man sed:
The characters \n, where n is a digit, will be replaced by the text matched by the corresponding backreference expression. For each backslash (\) encountered in scanning replacement from beginning to end, the follow- ing character loses its special meaning (if any).
vlad #include<disclaimer.h>
0
Response Number 2
Name: vibhor_agarwalin Date: February 8, 2005 at 05:34:53 Pacific
Reply:
Ooops,
I read it, but somehow it didn't click, or i was unable to corelate. Sometimes just a tinkle helps.
Another required now. This works only when i use: s/\(.*\)xyz/\1XYZ/ i.e. \(.*\) What does this specify.
Summary: Hi, I am trying to update one of my files and am having trouble updating the date. In my file I have: [a.aa] $$start=08/01/2004 $$end=07/31/2005 [a.bb] $$start=07/01/2004 $$end=06/30/2005 Based on a...
Summary: I have the sed commands but need help stringing them together correctly. Reading a variable length file where the last line is only ^Z. Need to change the preceding line ending in ^M to ^M^Z. ...
Summary: I'm trying to sed a character out of a series of files. The character is the euro symbol in Windows, 128 on the character map I believe. In vi it's showing up as ^À. I've tried running: sed "s/^À//" f...