Search Results

Search: Posts Made By: waqar1
2,325
Posted By waqar1
No NILA it didn work If I use this ...
No NILA it didn work

If I use this sed -e '$a $var' file1 > file2 it does work but it dosnt read var as a variable rather it reads it as text and place text "$var" at the end of...
2,325
Posted By waqar1
I used this because I wanted to append the value...
I used this because I wanted to append the value of var at the end of the file. it reads data from file1 and appends var at the end and save it in file 2

var=1234
sed -e "$a $var" file1 > file2
2,325
Posted By waqar1
Appending error
Hi All,

I just want to append the value in variable at the end of the file.

var=1234
sed -e "$a $var" file1 > file 2.

But I get this error
sed: -e expression #1, char 4: unknown...
Showing results 1 to 3 of 3

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