sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read command


From: Wim
Subject: read command
Date: Wed, 7 Feb 2024 22:15:15 +0100
User-agent: Mozilla Thunderbird

Hi ,

I have a question.

I want to read in a file every time the next line is processed in sed. But I want to read command output before the output of the pattern space.

I managed to do this , if i first do: sed -e '$q' -e '0rfilename' -e 'rfilename' but with this solution I have to repeat the same r command.

and the command 0,$rfilename doesn't work. is there any other solution with sed ?.

Kind regards,

Wim Stockman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]