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
Computer doesnt power on...
Thumbnail Photo on Exchange 2007
Designing Luns and datastores
SAP books for implementing ERP package
Vista DLLHOST.EXE Popup
What is the Best Digital Camera, that is tiny, takes video and takes great pictures?
Logon failure when trying to launch an application
SSAS 2008 MDX All Member Before Current Member
Vlookup Excel 2007
Anyone get Quickbooks errors in the Windows App log but not the program? Intuit says normal