9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
2. Shell Programming and Scripting
I am having data in XML format and trying to extract codes form two fields called <String>, below is the data.
<Node>tollfree<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>FieldSelection<Field Context="ALL fields"... (7 Replies)
Discussion started by: rramkrishnas
7 Replies
3. Shell Programming and Scripting
Hi,
I know that
echo "bob alice robert alice" | awk '{print index($0,"alice")}'
5Will output the index of the first alice match, is there any way to get the index of all matches?, eg:
echo "bob alice robert alice" | awk 'unknown magic'
5:18Thanks for your time. (6 Replies)
Discussion started by: chilicuil
6 Replies
4. Programming
Hi friends,
I have implemented the merge sort algorith in c, before I put forward my question, you please have a look at my code.
// The array is sorted, as 1234
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int A = {4, 3, 2, 1};
void Merge_Sort(int , int, int);
void... (0 Replies)
Discussion started by: gabam
0 Replies
5. Shell Programming and Scripting
Hi,
I have two files and want to get out the lines from file2.txt by the line number in file1.txt. The first one includes the line index numbers
file1.txt
2
6
10
...
And the second file has lots of lines like:
file2.txt
A B C
F G H
R T P
K L T
T F F (8 Replies)
Discussion started by: senayasma
8 Replies
6. Shell Programming and Scripting
1 2 000060000
How do i return the point in the string where the 6 is?
i.e what I want on output is
1 2 5
something like awk '{print $1 $2 index($3,6) }'
but I can't get it to work
Thanks in advance (3 Replies)
Discussion started by: garethsays
3 Replies
7. UNIX for Dummies Questions & Answers
brothers why inode index starts from 1 unlike array inex which starts from 0
its a question from the design of unix operating system of maurice j.bach
i need to know the answer urgently...someone help please (1 Reply)
Discussion started by: sairamdevotee
1 Replies
8. Filesystems, Disks and Memory
why do inode indices starts from 1 unlike array indexes which starts from 0
its a question from "the design of unix operating system" of maurice j bach
id be glad if i get to know the answer quickly
:) (0 Replies)
Discussion started by: sairamdevotee
0 Replies
9. Shell Programming and Scripting
hi, :)
In a shell script i came accross the following lines
1.for i in ` find /home/oracle -name ch'
2.do
3.echo $i
4.idx=`expr index $i .`
5.done
Here iam not able to understand the porpose of the word "index" in line 4.
any help ?
cheers
RRK (3 Replies)
Discussion started by: ravi raj kumar
3 Replies