That's right but I figured that since you were only testing for zero occurences, that did not matter. If you need the count then you could try something like this:
Hi,
I trying to sort information in a file by making count for every object. For example:
A
B
A
D
A
B
C
i would like to sort out count for each object (A's, B's and etc) but in actual case i dont know the object but i know the position ofthe object. do i need to use array as well? Any... (2 Replies)
Hi All,
Please i need to know the difference between grep, egrep & grep -i when used to serach through a file.
My platform is SunOS 5.9 & i'm using the korn shell.
Regards,
- divroro12 - (2 Replies)
Dear All,
Please advice about this issue.
when i run this line in a script if && || && || && if i enter $x = test3 and $y = test1 the If condition apply while it should not
Best Regards (2 Replies)
Hi
I am having a 'grep' headache
Here is the contents of my file:
(PBZ,CP,(((ME,PBZ,BtM),ON),((ME,((PBZ,DG),(CW9,PG11))),CW9,TS2,RT1)))
I would like to count out how many times 'PBZ' occurs and then place that number in the line above
3... (8 Replies)
Hello people!
I would like to create one script following this stage
I have one directory with 100 files
File001
File002
...
File100
(This is the format of content of the 100 files)
2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0
then I have one... (0 Replies)
I try to count number of lines of a data.txt file and then if number of lines is greater than 1 then email me the file.
I could not find what is wrong with my code, hope you can point out the mistake i made
#! /bin/ksh
count =`cat /from/file/data.txt | wc -l`
if ]; then
mailx -s... (4 Replies)
KSH
HP-SOL-Lin
Cannot use xAWK
I have several strings that are quite long and i want to break them down into smaller substrings.
What I have
String = "word1 word2 word3 word4 .....wordx"
What I want
String1="word1 word2"
String2="word 3 word4"
String3="word4 word5"
Stringx="wordx... (5 Replies)
Hi All.
I'm trying to count with command cat Count.log |sort -t 1 | uniq -c
Input File.
Back-end Invalid Id Password
Back-end Invalid Id Password
Success
Success
Success
Back-end Invalid Id Password
Back-end User state is invalid
Back-end User state is invalid
Success... (9 Replies)
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
LEARN ABOUT DEBIAN
queue.dequeue
Queue.dequeue(3kaya) Kaya module reference Queue.dequeue(3kaya)NAME
Queue::dequeue - Remove an item from a queue.
SYNOPSIS
a dequeue( Queue<a> q )
ARGUMENTS
q The queue
DESCRIPTION
Removes the front item from the queue, and returns the removed item. If the queue is empty, then the Queue.EmptyQueue(3kaya) exception
will be thrown.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) as published by the Free Software Foundation.
RELATED Queue.array(3kaya)Queue.empty(3kaya)Queue.enqueue(3kaya)Queue.length(3kaya)Kaya October 2012 Queue.dequeue(3kaya)