Search Results

Search: Posts Made By: admax
1,097
Posted By admax
Thanks... i got it.. :b:
Thanks...
i got it.. :b:
1,097
Posted By admax
Load different lib paths for different machines during ssh.
Greetings to every one,
I have to access different clusters for computing.
But the problem is their lib paths are different. :eek:
How can i export some particular library paths for a particular...
Forum: Programming 07-18-2011
1,495
Posted By admax
wrong output.
Output is different from desired one.

ATCCCCCTTACCCCCCCCCCTTATT <= Desired

ATCCCCCTACCCCCCCCCTTATT <= Output

I think in for loop at every step it is keep on reducing a character...
...
Forum: Programming 07-17-2011
1,495
Posted By admax
Substitute string using location (preferably perl).
I have a string like.

ATATATATTATTATATTATATTATT

I want to substitute the characters to "C" by using these locations
3 7
10 18
15 20

desired Output:
ATCCCCCTTACCCCCCCCCCTTATT

any clue...
2,988
Posted By admax
2,988
Posted By admax
Download data from ftp.
Dear all,
I am beginner to shell scripting.
I have to download more than 1k files from ftp site.
link is below
ftp://ftp.ncbi.nih.gov/genomes/Bacteria/

Earlier i was using wget url, for...
2,703
Posted By admax
Hello all,
Can any one explain this code ?
:confused:
2,703
Posted By admax
Printing the continuous occurence of pattern using awk ?
Hello all,
I have a input file like this.

input file
---------------
abc ab001 + ab002 zca
acb ab006 + ab007 caz
cba ab003 + ab004 zca
bac ab004 - ...
12,231
Posted By admax
thanks ahmad.diab.
I made modifications in my .bash_profile.

:)
12,231
Posted By admax
I got it.
Thanks to all of u.

i commented few lines in bashrc now i am getting my desired prompt.

----------------------------------------------------------------------------------------------------
#if...
12,231
Posted By admax
Dear scottn
I checked .bash_profile it is not set.
this is my .bash_profile

...........................................................................
# Get the aliases and functions
if [ -f ~/.bashrc ];...
12,231
Posted By admax
cat .bashrc
# .bashrc
export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '


#-------------------
# Personnal Aliases
#-------------------

alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias...
12,231
Posted By admax
Dear Franklin52
I searched it in the forum.
and i found the the thread but its not working in my case thats why i have posted it again.

...
12,231
Posted By admax
How can i change my bash prompt ?
It looks like,

user@hostname:/auto/home3/user$

Desired,

user@hostname$

I added following line in .bashrc, but still its same.

export PS1="[\u@\h] $ "

Please help me :confused:
3,591
Posted By admax
pwd
print working directory.
:)
2,785
Posted By admax
sorry, that was formatting error.
now i think it looks clear.
2,785
Posted By admax
Sorting the data right justified with through awk.
Dear all,
I have a inputfile like some what like this -


1000.98651
1000.96696
999.98904
991.66864
986.51829
986.49467
17.44122
16.74039
16.74021
10.92725

desired output
...
25,833
Posted By admax
Now it is working properly.
ahmad.diab's solution is working.
"awk 'END {print NR}' ecoli_operons" is working.
file size is > 10x1024.
Thanks to all.
25,833
Posted By admax
line 5: [: -gt: unary operator expected
Hello all, :confused:
I am not getting this error.
Pls help me.

./construct_operon.sh: line 5: [: -gt: unary operator expected

#!/bin/bash
# Construct Operons using gene pairs.
rm -rf...
13,992
Posted By admax
Print rows, having pattern in specific column...
Hello all, :)
I have a pattern file some what like this,

cd003
cd005
cd007
cd008


and input file like this,

abc cd001 cd002 zca
bca cd002 cd003 cza
cba cd003 cd004 ...
4,322
Posted By admax
AWK, print no of records after pattern match.
Hi ALL :).

i have a file,

cat 3 +
dog 5 +
rat 6 -

i want to print no of record having pattern "+".
thanks in advance :confused:.
Showing results 1 to 21 of 21

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