Microsoft
Software
Hardware
Network
Question : How to use dynamic variables in sed
how do i use dynamic variables in sed;
eg:
a=1
sed -ne '1p'
What if i wanted to use $a in the sed expression.
I dont know the syntax of it.
Answer : How to use dynamic variables in sed
I think you are using sh or bash.
sed -be 1p does exactly the same such as head -n 1
which is print the first line.
If you want to pas the number as variable, this:
a=1
sed -ne "$a"p filepath
would work. I tested.
Random Solutions
Function in excel
VPN problems: SonicWall TZ 180 to TZ 210
Accessing GPT drive on windows 7 from Windows XP
Edge Sync Fails
Create a list of users in Active Directory whose account has been locked out for 90 days
Iseries OSV5R4 PM eserver iSeries telephone number
Windows 2003 Server Restart Errors
Group policy updates causes screen to flicker
Update Java - no admin privleges
Would you recommend Draytek Vigor 2820 for site-to-site VPN