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
VBScript to check if a account exist then what memebership it has
how to load ipt_REDIRECT.ko
Developing Web Services
A_POLICY_VIOLATED_FILE_WAS
_DETECTED_
AND_REMOVE
D
Open file Security Message
Looking for IP and Mac addresses for all devices on network
XP refuses to boot after OS boot order changes were made using EasyBCD
Allowing port 1935 streaming media traffic
get wrong autodiscover server in warning message....
Importing Custom Exchange Public Folder Data into Access 2007 table