Search Results

Search: Posts Made By: faizlo
3,115
Posted By RudiC
Would this do:awk -vDEBUG=1 ' BEGIN ...
Would this do:awk -vDEBUG=1 '
BEGIN {C1 = split ("UU[CU] UA[UC] GC[ACGU] GG[ACGU] CC[ACGU] AC[ACGU] GU[ACGU] CG[ACGU]|AG[AG] CU[ACGU]|UU[AG] "\
...
3,115
Posted By Don Cragun
Change the last line of rudic.awk from: '...
Change the last line of rudic.awk from:
' fileto:
' input.txt
Then execute the script with:
sh rudic.awk
or make rudic.awk executable and execute it directly:
chmod +x rudic.awk
./rudic.awk
3,115
Posted By RudiC
Yes. Done. That wasn't too clear from...
Yes. Done.



That wasn't too clear from your spec. Try awk '
BEGIN {split ("UU[CU] UA[UC] GC[ACGU] GG[ACGU] CC[ACGU] AC[ACGU] GU[ACGU] (CG[ACGU]|AG[AG]) (CU[ACGU]|UU[AG])...
3,115
Posted By RudiC
This one creates three files: DNA.OUT, RNA.OUT,...
This one creates three files: DNA.OUT, RNA.OUT, and AminoAcids from the input file, and prints the numbers of non-empty and empty lines in the file:awk '
/^[ ]*$/ {EMP++
...
7,410
Posted By cjcox
Ok... a bit messy but done very quickly... first...
Ok... a bit messy but done very quickly... first I created a sed script (call the file dna.sed):
(you don't need the /g at the end of these... again, created this quicky)


s/ACC /Thr /g
s/ACA...
Forum: Programming 01-12-2015
2,872
Posted By ongoto
Will this work? total = 0 for c in '1.32',...
Will this work?
total = 0
for c in '1.32', '5.32', '4.4', '3.78':
c = float(c)
total += c
print totalIt might also work without c = float(c)
# c = float(c)
total += float(c)
Forum: Web Development 06-21-2014
4,780
Posted By Akshay Hegde
As said by Neo, you have to change DocumentRoot...
As said by Neo, you have to change DocumentRoot directive

1. Copy default configuration file safety point of view $ sudo cp /etc/apache2/sites-available/default...
Forum: Web Development 06-21-2014
4,780
Posted By Neo
You can use the Apache2 DocumentRoot directive to...
You can use the Apache2 DocumentRoot directive to set the document root.

Perhaps you should search on line and find a basic working example of setting up your Apache2 config files?

Most Linux...
Forum: Web Development 06-20-2014
4,780
Posted By Neo
$_SERVER['DOCUMENT_ROOT'] is a PHP global...
$_SERVER['DOCUMENT_ROOT'] is a PHP global variable for the entire PHP (and web server) configuration set in the the core web server config files (for example the global Apache2 conf file). You can...
Forum: Programming 12-29-2013
1,780
Posted By Akshay Hegde
Hai Faizlo, everything is alright except variable...
Hai Faizlo, everything is alright except variable declaration for char

make like this and run it should work

CHARACTER(LEN=3) Ans
1,185
Posted By Perderabo
The software does that based on some filters that...
The software does that based on some filters that don't always work very well. I believe that I found and approved the post. Sorry for the inconvienence and I agree, no rules were broken.
Forum: Programming 03-10-2011
3,628
Posted By zius_oram
a loop to iterate through user given range...
a loop to iterate through user given range excluding first (++i) element and last element (i < j).
Forum: Programming 03-10-2011
3,628
Posted By zius_oram
You are using a conditional if() statement and...
You are using a conditional if() statement and not a loop, some changes and it works


#include <iostream.h>
int main()
{
int i, j;
cout << "Enter two numbers:" << endl;
cin >> i >>...
Forum: Programming 03-09-2011
3,628
Posted By fpmurphy
If you want to print all the numbers between the...
If you want to print all the numbers between the first and second including the first and second the following will work

#include <iostream>

int main()
{
int i, j;

std::cout <<...
35,909
Posted By eltinator
Never mind, I actually got it to work using the: ...
Never mind, I actually got it to work using the:

command << EOF
answer
EOF

Thanks anyways
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 04:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy