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 do I have a field displayed in a report for all data options except one
Outlook hyperlinks take me to my homepage (not the actual link url
Read Only user for Oracle VM Manager (OVM)
PL/SQL Performance
Plug n Play/USB/Registry Nigtmare - I Need to regularly delete keys in order to "detect" my MP3 Player!
Copy large file
Trying to upgrade from 2008 64 to 2008 R2 and it states WSUS needs to be removed
Migration from 2003 SBS to 2008 Foundation Server
comment SP
CX600 FLARE 2.05.600.5.007 - upgrade procedure to 2.19?