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
Since upgrading to SQL 2008 linked Access Tables/Queries Very Slow
How do I get the value of xpages file upload
Find and Replace Hyperlinks in Access 2007
Exchange 2010 Backup
Switch 3Com 4800G doesn't save configuration ?
How can I destroy all data on this old server?
Exchange 2007 - Error 5.1.0 - Unknown address error 550-'5.1.1 User unknown'
Put control inside of AJAX UpdatePanel, now get Type 'System.Web.UI.UpdatePanel
' does not have a public property named 'FileUpload'
How to pause a process execution in C++
A Web Exception occurred because an HTTP 401 - Unauthorized response was received from Unknown