Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: faizlo
1,242
Posted By faizlo
Remove a word that ends with special character "!"
Hi all.


I want to use sed to remove a word that ends with "!" in the first page of a file. The word I want to remove is: "DNA!".
I have search for an answer and nothing of what I found helped...
1,606
Posted By faizlo
Generate a string of alphanumeric characters
Hi,
I want a script of a code that will allow me to generate all possible combinations of alphanumberica characters of length 12 such that each string will contain numbers and either small or...
Forum: Hardware 05-03-2016
7,248
Posted By faizlo
Problem with Broadcom BCM43225 wifi interface on an Acer Aspire laptop
Hi

This is a question about Broadcom BCM43225 wifi interface on an Acer Aspire laptop

I just had a fresh install of ubuntu 16.04 on my acer aspire laptop and I am having a difficult issue with...
1,827
Posted By faizlo
@RudiC: Thank you so much for your help. I...
@RudiC:
Thank you so much for your help. I can't appreciate it more.
It will take me some time to understand the script as awk seems to be huge indeed.
Thank you so much again.
1,827
Posted By faizlo
Interesting. I have done the executable step...
Interesting. I have done the executable step before but did not work!
It does now.
Thank you both for your help. I appreciate it.

---------- Post updated at 10:09 PM ---------- Previous update...
1,827
Posted By faizlo
I have added other missing bases and AAcids to...
I have added other missing bases and AAcids to your awk code. Here is what I have now:

awk '
BEGIN {split ("UU[CU] UA[UC] GC[ACGU] GG[ACGU] CC[ACGU] AC[ACGU] GU[ACGU] (CG[ACGU]|AG[AG])...
2,095
Posted By faizlo
bash, tr, awk, sed
This is my master.sh script:

#!/bin/bash
#check to see if there is an input file: ...
2,095
Posted By faizlo
While loop with input in a bash script
I have the following while loop that I put in a script, demo.sh:
while read rna; do
aawork=$(echo "${rna}" | sed -n -e 's/\(...\)\1 /gp' | sed -f rna.sed)
echo "$aawork" | sed 's/ //g'...
1,827
Posted By faizlo
Thank you all for your help. The error has gone. ...
Thank you all for your help. The error has gone.

RudiC: thank you for your awk script.

Can my scripts be combined together in just one script? My script gives the frequencies of each Amino...
1,827
Posted By faizlo
Fixing a shell script
I have this shell script that I wrote to check an input file to see if it is empty or not, and then clean the file from any line that starts with the sign "<" (without quotation marks" and then spell...
4,452
Posted By faizlo
Here is what I did: Created a file dna.sed ...
Here is what I did:

Created a file dna.sed
Created another bash script file with your code (starting with the usual #!)
Called the shell script "conversion.sh" and chmod it to excutable
ran...
4,452
Posted By faizlo
Convert a DNA sequence into Amino Acid
I am trying to write a bash script that would be able to read DNA sequences (each line in the file is a sequence) from a file, where sequences are separated by an empty line. I am then to find the...
Forum: Programming 06-07-2015
1,365
Posted By faizlo
Thanks for the reply. No, I don't have a backup....
Thanks for the reply. No, I don't have a backup. I first installed cabal-install and cabal-debian then I installed pandoc. For some reason (not a sane one for sure) I deleted /root/.cabal/ and as you...
Forum: Programming 06-07-2015
1,365
Posted By faizlo
Removed /root/.cabal by mistake - how to solve this issue?
I have mistakenly removed /root/.cabal/ from my root directoty and when I tried to reinstall it I get this output:

faiz:~$ sudo cabal install pandoc --reinstall
Resolving dependencies...
In...
Forum: Programming 01-12-2015
1,897
Posted By faizlo
Thank You!
Thank You!
Forum: Programming 01-11-2015
1,897
Posted By faizlo
Extracting floats from a string in Python
I have this script which can calculate the total of numbers given in a string

total = 0
for c in '0123456789':
total += int(c)
print total
How should I modify this script to find the...
1,257
Posted By faizlo
I would have happily shared the Python script,...
I would have happily shared the Python script, but it belongs to my work.
1,257
Posted By faizlo
Sorry, I meant to answer Scrutinizer first...
Sorry, I meant to answer Scrutinizer first suggestion.
I use Ubuntu Linux (14.04.0x) and I am using bash.
The problem is this:
I am using a script to download files that all have the same name...
1,257
Posted By faizlo
I tried your suggestion, still I get the same...
I tried your suggestion, still I get the same results. The first files is downloaded but not renamed (moved), and then the scripts keeps running giving the message that the files exists. If I keep it...
1,257
Posted By faizlo
Hi Thank you for your quick response. ...
Hi

Thank you for your quick response.
Unfortunately, the files I download are contained in a python script (they are numerous) so I am left with the first answer of yours. I used the wget example...
1,257
Posted By faizlo
Renaming a file that starts with "-"
Hi

I am downloading some files from the Internet. They are from different sources and they are all called
-.txt
that is: a dash "-" followed by a dot "." and then the file extension.
So i wrote...
Forum: Web Development 06-21-2014
3,213
Posted By faizlo
Akshay_Hedge Thank you so much. That did the...
Akshay_Hedge

Thank you so much. That did the trick.
Now, if I can take the chance, would you please explain me what I (we) just did?

Thanks again to all of you who replied

~faizlo
Forum: Web Development 06-21-2014
3,213
Posted By faizlo
I use UBUNTU 12.04 LTS on a Dell Machine (Core...
I use UBUNTU 12.04 LTS on a Dell Machine (Core i5, 8GB RAM, NVIDIA Graphics.)
Where can I change this $_SERVER["DOCUMENT_ROOT"] directive?
Forum: Web Development 06-21-2014
3,213
Posted By faizlo
Hi Neo The box I use is my own box at home....
Hi Neo

The box I use is my own box at home. I am using it to learn Web Development with PHP and MySQL, so I can do anything I want with it - no problem.
That said, I could configure apache2 to...
Forum: Web Development 06-20-2014
3,213
Posted By faizlo
$_SERVER['DOCUMENT_ROOT'] directs to /var/www not ~/public_html
Hi all,

Exactly like my title says.
I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use...
Showing results 1 to 25 of 68

 

Featured Tech Videos

All times are GMT -4. The time now is 06:06 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy