Search Results

Search: Posts Made By: vjayraghavan
1,906
Posted By vjayraghavan
Thatz working!! Thanks a lot for your help!!
Thatz working!! Thanks a lot for your help!!
1,906
Posted By vjayraghavan
invoke unix variable in SED command
Hi,

I am trying tio invoke unix variable in a sed command like below, but it seems to be failing..

a=1
sed -n '$a,$p' file.txt ### Failing

but

a=1
sed -n '1,$p' files.txt ###...
Showing results 1 to 2 of 2

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