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
excel vba to save worksheet as mht file
Unable to deploy a clickonce application on some clients!
Cross Domain Exchange Mailbox Access
Silently remove registry key value at logon
Repeating SQL
How do I allow only a certain ip adress to access my website?
Guide to install OS in newly Hard Drive
Setup multiple ethernet interfaces on Redhat to support Oracle RAC
Import/Merge messages from PST into existing mailbox on Exchange 2003
pp0 IP configuration.