Search Results

Search: Posts Made By: hi_ryo
15,311
Posted By hi_ryo
Thank you, Jim. But then I need to call "sed...
Thank you, Jim.
But then I need to call "sed -f .." in the perl script, and pass the perl variables to the sed script. It seems to complicate the problem.

I've found out that might be a...
15,311
Posted By hi_ryo
Pass perl variable to sed
Hello,

I'd like to pass a variable to a sed command in a perl script. The script is like this :

#!/usr/bin/perl -w

$newline="new";
system q(sed '/insert/ i\ '$newline <sed1.txt...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy