2 changed to a blockquote from code block
source | link

I have a text file and I would like to extract the two lines of data following a line containing only "Name" as a value.

Name

032

Express intent to engage in diplomatic cooperation (such as policy

support)

Description

Name

033

Express intent to provide material aid, not specified below

Description

Name

032

Express intent to engage in diplomatic cooperation (such as policy

support)

Description

Name

033

Express intent to provide material aid, not specified below

Description

So, the output from above would be a file that has:

032 Express intent to engage in diplomatic cooperation (such as policy support)
033 Express intent to provide material aid, not specified below

032 Express intent to engage in diplomatic cooperation (such as policy support)

033 Express intent to provide material aid, not specified below

I have a text file and I would like to extract the two lines of data following a line containing only "Name" as a value.

Name

032

Express intent to engage in diplomatic cooperation (such as policy

support)

Description

Name

033

Express intent to provide material aid, not specified below

Description

So, the output from above would be a file that has:

032 Express intent to engage in diplomatic cooperation (such as policy support)
033 Express intent to provide material aid, not specified below

I have a text file and I would like to extract the two lines of data following a line containing only "Name" as a value.

Name

032

Express intent to engage in diplomatic cooperation (such as policy

support)

Description

Name

033

Express intent to provide material aid, not specified below

Description

So, the output from above would be a file that has:

032 Express intent to engage in diplomatic cooperation (such as policy support)

033 Express intent to provide material aid, not specified below

1
source | link

Extract two lines following a line with a specific value

I have a text file and I would like to extract the two lines of data following a line containing only "Name" as a value.

Name

032

Express intent to engage in diplomatic cooperation (such as policy

support)

Description

Name

033

Express intent to provide material aid, not specified below

Description

So, the output from above would be a file that has:

032 Express intent to engage in diplomatic cooperation (such as policy support)
033 Express intent to provide material aid, not specified below