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
setup Xsan with couple of Apple macs final cut pro
What technique is being used here?
helpdesk interview for bank
Crystal report 2008, draw graph with huge of data.
Using multiple routers - BEFVP41 VPN Router, Netgear WDR3700
Cisco VPN client for Windows, use both RSA SecurID soft token and hard token
Assigning a GPO to specific users and one Server only ?
Spam black list removal " dnsbl.burnt-tech.com"
Interview Question: Threads
Windows 7 dual boot after the fact