Re: Sed command, Insert text in front of existing line
joe_at_invalid.address
Date: 08/21/03
- Next message: joe_at_invalid.address: "Re: Splitting line at whitespace?"
- Previous message: Michael Heiming: "Re: Splitting line at whitespace?"
- In reply to: Søren Bryndum Christiansen: "Sed command, Insert text in front of existing line"
- Next in thread: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Reply: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Reply: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 21 Aug 2003 17:31:04 GMT
"Søren Bryndum Christiansen" <soren.bryndum.christiansen@ericsson.com> writes:
> can anyone help me out here? Looking for some sed command for the
> following:
>
> From my script I'm getting a log file, but I would like to insert
> some extra text in front of each line eg.
>
> Output
> Output2
> Output3
>
> <text> Output
> <text> Output2
> <text> Output3
>
> How can this be done in the easiest manner?
If I understand this right, I don't think you need sed. For example
while read line; do
print text $line
done < file
Joe
- Next message: joe_at_invalid.address: "Re: Splitting line at whitespace?"
- Previous message: Michael Heiming: "Re: Splitting line at whitespace?"
- In reply to: Søren Bryndum Christiansen: "Sed command, Insert text in front of existing line"
- Next in thread: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Reply: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Reply: Alan Connor: "Re: Sed command, Insert text in front of existing line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|