7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
What is an efficient way of counting the number of unique values in a 400 column by 1000 row array and outputting the counts per column, assuming the unique values in the array are:
A, B, C, D
In other words the output should look like: Value COL1 COL2 COL3
A 50 51 52... (16 Replies)
Discussion started by: Geneanalyst
16 Replies
2. UNIX for Beginners Questions & Answers
Hi,
tab-separated input:
blabla_1 A,B,C,C
blabla_2 A,E,G
blabla_3 R,Q,A,B,C,R,Q
output:
blabla_1 3
blabla_2 3
blabla_3 5
After splitting $2 in an array, I am trying to store the number of unique elements in a variable, but have some difficulties resetting the variable to 0 before... (6 Replies)
Discussion started by: beca123456
6 Replies
3. Shell Programming and Scripting
Hi all,
I have the code as below "
echo "File carried list after 1st loop "${fileStreamAssiagnInit}""
and I have the out put for the above code as below :
Output : File carried list after 1st loop abcInd.csv sdgUS.csv sopSing.csv
Here i want to count the number of elements in... (3 Replies)
Discussion started by: Balasankar
3 Replies
4. Shell Programming and Scripting
Hi,
I'm new to linux & bash so please forgive my ignorance, just wondering if anyone can help.
I have a file (mainfile.txt) with comma deliminated values, like so:
$1 $2 $3
613212, 36, 57
613212, 36, 10
613212, 36, 10
677774, 36, 57
619900, 10, 10
i need to split this file... (12 Replies)
Discussion started by: BigTOE
12 Replies
5. AIX
Hi pals
I manage nearly 200+ aix workstations.
I need to setup a legal disclaimer in all the workstations.
When the user do a interactive login in CDE the legal disclaimer should be displayed and once he accepts the same he should be able to login to system.
Can anybody suggest me as to... (0 Replies)
Discussion started by: sriram.s
0 Replies
6. Programming
hi friends,
the following code works fine,but the question is
"is this a valid c".
i really have no idea.......
void func()
{
int x = 50;
{
int y;
y = x + 400;
printf("x = %d\n",x);
printf("y = %d\n",y);
}
} (2 Replies)
Discussion started by: mxms755
2 Replies
7. Shell Programming and Scripting
I have a file that I want to grep and identify all of the illegal characters. I have a list of legal ascii characters
\11\12\40-\176,\0-\255
so i try a grep -v to exclude these but my syntax is not correct??
$ cat TRANS_20050613_00.DAT.ERROR | grep -v '\11\12\40-\176\0-\255'
grep:... (2 Replies)
Discussion started by: lesstjm
2 Replies