Hi,
im trying to insert some info at a particular line, where the line and the text are both held in variables
In trying to do the following:
Code:
sed ""$ln"i\"$addline"" $file1 > $file2
i get:
unexpected EOF while looking for matching `"'
if i try:
Code:
sed "$ln"i\"$addline" $file1 > $file2
sed just errors on every word in "$addline" saying file not found
Any help would be greatly appreciated
Thanks.