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
multiple users having outlook and phones checking one IMAP mailbox, is it a problem?
Document Review
jsp forwarded address
Any sandbox tool out there for opening file attachments safely?
Using wininet.dll with vba code within Excel 2003 macro on windows 2008 R2 server. FTP hangs
citi.bridgetrack.com
Evnet id 10016 - DCOM & DFS
Unable to install Webmin
Possible Virus Infection - Can not connect to Internet, Max TCP connections reached.
How to block mulitple ports within a range in mmc?