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
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Change Mac disk to from case-sensitive, Journaled to Case-insensitive, Journaled.
Need a driver for sm bus controller on Dell d620
bulk collect - amount of return
Windows PFBACKUP can't find my Outlook PST.
Exchange 2003 (SBS) not sending or receiving.
How to copy folders/files between computers and preserve modified date ?
Er diagram for university accommodation office
How to clear a datagridview
VPN between SSG 20 and RVO42 does not come up. "ERROR: Peer did not send a proxy id"