9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have an array containing following sample information
@array = qw (chr02 chr02 chr02 chr02 chr02 chr03 chr03 chr04 chr04 chr05 chr05 chr05 chr07 chr07) I need to replace all duplicate entries by an underscore to get the following output@array = qw (chr02 _ _ _ _ chr03 _ chr04 _ chr05 _ _... (4 Replies)
Discussion started by: pawannoel
4 Replies
2. UNIX for Dummies Questions & Answers
Hi All
I have a question.
I would like to edit some string characters by replacing with characters of choice located in another file. For example in sample file>S5_SK1.chr01
NNNNNNNNNNNNNNNNNNNCAGCATGCAATAAGGTGACATAGATATACCCACACACCACACCCTAACACTAACCCTAATCTAACCCTGGCCAACCTGTTT... (9 Replies)
Discussion started by: pawannoel
9 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I hv several files which have hundreds of lines each for example>XYZ.abc01
NNNTCGGTNNNNNCCACACACMYACACACCCACACCCACSCARCAC
I'd like to exculde the first line beginning with ">" and then for the rest of the lines get a count for each string element. So for the above example I would like... (8 Replies)
Discussion started by: pawannoel
8 Replies
4. Fedora
Hi All,
I have a general difficulty in understanding how to control single elements within a string. An example,
XYZ1234 ABCD5678 My expected output is :
ABCD1234 XYZ5678 (swapping subset of string elements of choice)
XYZ37 ACBD1214 (making calculations... (6 Replies)
Discussion started by: pawannoel
6 Replies
5. Shell Programming and Scripting
How can I get my array to understand the double-quotes I'm passing into it are to separate text strings and not part of an element? here's what I'm working with...
db2 -v connect to foo
db2 -x "select '\"' || stats_command || '\",' from db2law1.parallel_runstats where tabname = 'BAZ'"
set... (4 Replies)
Discussion started by: djschmitt
4 Replies
6. Shell Programming and Scripting
hi
if i have arry with lots of intergers , how to check if there is duplicate integers
in perl ?
say I ahve @intergers=( 1,2,3,3,4,5,4,99,99,100) (2 Replies)
Discussion started by: james94538
2 Replies
7. Shell Programming and Scripting
Hi,
My doubt is how to access array elements..
Situation is as below:
#!/bin/ksh
set -x
typeset -i x=0
typeset -i y=0
typeset -i BID=0
typeset -i count=0
while ] ; do
x=`expr $x + 1`;
hwmgr show scsi > scsi.tmp
while read line; do
set... (1 Reply)
Discussion started by: mansa
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am writing a BASH shell script. I have an array that will contain IN ANY ORDER the following elements: DAY 8D MO NS.
I would like to erase the element DAY, but since the order of the elements in the array are random, I will not know which element # DAY is (ie it's not as simple as... (3 Replies)
Discussion started by: msb65
3 Replies
9. Shell Programming and Scripting
I just want to be able to take every 6 value out of an arrays
can someone tell me what i'm doing wrong? the data looks like
1500680,Treverbyn,397,1,2136,4420 and i want the 2 element treverbyn out of every row
#hour0.pl
my $url = 'http://en19.tribalwars.net/map/tribe.txt';
use... (1 Reply)
Discussion started by: frenchface
1 Replies