Search Results

Search: Posts Made By: germany1517
1,410
Posted By germany1517
Perl program get a response before the program quits
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the...
976
Posted By germany1517
Perl math program
I have this math program on Perl and when I run it one of the math problems that comes up is 0/0 and perl makes the answer 4. How can I program perl to not include numbers /0?
What I have for the...
1,748
Posted By germany1517
Creating a condition on a bash script
I wrote a code to find codons in a DNA string. The only problem I have is how do I make the code only work for a file with DNA. This means the file only has the characters a,c,g,t and no white space...
1,155
Posted By germany1517
Thanks. My script reads if [ -z $1 ] then...
Thanks.
My script reads
if [ -z $1 ]
then echo ""
else echo `grep -e "ATOM" $1 | cut -c7-11,31-54 `
fi

the input is the script with a filename
the output is:
23 14.267 10.895 0.527 24...
1,155
Posted By germany1517
Help with bash script
I wrote a script using the command:
echo -e ` grep -e "ATOM" $1 | cut -c7-11,31-54 `
the problem I am having is that the output in the script does not list the lines I am cutting, instead it...
Showing results 1 to 5 of 5

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