Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Can sed use a file on the syntax?

$
0
0
Dear all,

I need help, again.

I would like to use a sed on a for. Is is possible to ask sed to call a file in the syntax?

For exemple:

Code:

  sed "/Y/ s/number/X/" test_imput > test_output
where Y is a file which inside there is one pattern only; Also X is a file with one pattern only.

This files will change during the for loop.

Thank you in advance,

Leandro

Viewing all articles
Browse latest Browse all 16232

Trending Articles