Search Results

Search: Posts Made By: acctoujours
2,673
Posted By acctoujours
thank you so much!, it works very well ;) ...
thank you so much!, it works very well ;)

I'm using ed instead of sed because i want to edit a file in situ without creating a temporary file.
2,673
Posted By acctoujours
Parameterized ed command
Hi!, i have a problem when i trying to replace, in this script, the number five with a variable.

ed file <<< $'1,5d\nw'

i need something like that

ed file <<< $'1,${VAR}d\nw'

I believe...
Showing results 1 to 2 of 2

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