148 reputation
18
bio website rastasoft.ir
location Tehran, Iran
age 27
visits member for 2 years, 6 months
seen Dec 15 at 19:51

I'm a programming enthusiastic, Experted in web applications. My hubbies are: php,python,c++,mysql,js,jquery[ui],css


Nov
8
accepted How to read needle part of the sed command from a file?
Oct
26
awarded  Commentator
Oct
26
comment How to read needle part of the sed command from a file?
@JosephR. perl script works perfectly, tnx alot. now that my question is more clear can you confirm that doing this in sed without first escaping the needle is impossible?
Oct
26
comment How to read needle part of the sed command from a file?
@Costas it doesn't work. I guess it's not possible to simply read from a file without escaping meta characters. see this: unix.stackexchange.com/questions/32907/…
Oct
26
comment How to read needle part of the sed command from a file?
@Costas tnx, sed 's/^<?php.*\(<?php\)$/\1/' did the trick for me. can you answer if that's possible to read the search part from a file without worring about if it need escaping?
Oct
26
revised How to read needle part of the sed command from a file?
added the real subject
Oct
26
comment How to read needle part of the sed command from a file?
@terdon yes I want something like your example. and no it's not multiline pattern and isn't regex either, just simple string of characters (non ascii too).
Oct
26
awarded  Editor
Oct
26
comment How to read needle part of the sed command from a file?
needle.txt is not a regex, it's the text I want to be replaced and has a lot of non ascii characters,tnx.
Oct
26
revised How to read needle part of the sed command from a file?
clarify the question
Oct
26
asked How to read needle part of the sed command from a file?
Feb
25
comment Why load is high despite the fact that neither CPU or disk is overused
load is relative to number of cpu's and cpu cores, what is cpu specifications of your system?
Feb
25
comment Why load is high despite the fact that neither CPU or disk is overused
what's the cpu specifications and how much is the load?
Dec
29
awarded  Notable Question
Jun
15
awarded  Scholar
Jun
15
accepted How to restore default group/user ownership of all files under /var?
Jun
13
awarded  Popular Question
Apr
25
awarded  Supporter
Apr
3
awarded  Informed
Oct
5
comment How to restore default group/user ownership of all files under /var?
@derobert debian testing aka wheezy