sed -i '11 b; s/AllowOverride None\b/AllowOverride All/' test
I searched everywhere and have had no luck. here is what I'm trying to do.
I have a single file I want to edit one line that appears 4 times. in this case line 11.
I want to change it from
AllowOverride None
to
AllowOverride All
and "test" at the end of my code is the file name
Thank you
Last edited by Franklin52; 08-28-2012 at 04:32 AM..
Reason: Please use code tags for data and code samples
I am testing shc to see if it would help with my need.
Im at a point where Im trying to compile and test the "test.ksh" file that comes in the tar ball :
shc-3.8.9> shc -v -r -f test.ksh
shc shll=ksh
shc =-c
shc =exec '%s' "$@"
shc =
shc opts=
shc: cc test.ksh.x.c -o test.ksh.x... (7 Replies)
Hi,
I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Source: Apache.org
The .htaccess file is not read by the server based the test above and the lack of change in the operation of the server.
httpd.conf
<Directory />
Options None
AllowOverride All
# Initially this was set to None and I would prefer it be again, just testing
... (6 Replies)
Hi new to the forum,
I have a Apache server on CentOS which hosts a web site. I've set up the SSL which has been tested as I can access my website via http and https.
I would like to redirect all browsers to use https instead of http. I have created the htaccess file which contains 'Allow... (3 Replies)
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)