Hi,
I am a new learner of Unix. I am currently working on a Solaris 8 machine. Earlier, when I use 'cd <folder name>' command, I am not only able to change the folder but also able to see the contents of the folder as if a 'ls -lt' command was executed. However, since a week, suddenly this... (3 Replies)
I am using AIX and ksh.
I need to display the contents of a file that has a pid (process id). Because the file is open, it doesn't have the line feed or new line, so for some reason if I do this:
`cat $pid` , where $pid is the name of the fully qualified file, it displays
test3.sh: 426110:... (1 Reply)
Hi i have just registered
So i am at university studying forensic computing and we have to learn c++
i have never done anything with c++ before and i am abit stuck
i need to create a programme to display the contents of an array of characters forwards and in reverse
Can anyone help me... (1 Reply)
Hi,
I have an array with 3 words in it and i have to match all the array contents and display the exact matched sentence i.e all 3 words should match with the sentence.
Here are sentences.
$arr1="Our data suggests that epithelial shape and growth control are unequally affected depending... (5 Replies)
Dear Friends,
Am an newbie to this domain. I have a table which is filled with contents which i need to be updated with,so am trying to design a flow which would read the data from the table and mail it to me at regular intervals. I could make out the flow using mailx command but want to... (3 Replies)
Hi
I want to write a script which store all the parameters passed to the script into an array.
Once it is stored I want scan through the array and and delete those files for last month present inside the directory. The files in directory is appneded with YYYY_MM_DD.
I want to know how can I... (3 Replies)
if i want to display the contents of a file between say line number 3 and 10 then i use the following command
sed -n '3,10p' filename
if this 3 was contained in x and 10 was contained in y then how wud this command modified?
sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hi All
I have multiple arrays like below.
set -A val1 1 2 4 5
set -A val2 a b c d
.
.
.
Now i would like to pass the individual arrays one by one to a function and display/ do some action.
Note : I am using ksh
Can you please advise any solution...
Thanks in advance. (7 Replies)
Discussion started by: Girish19
7 Replies
LEARN ABOUT DEBIAN
test::data::array
Array(3pm) User Contributed Perl Documentation Array(3pm)NAME
Test::Data::Array -- test functions for array variables
SYNOPSIS
use Test::Data qw(Array);
DESCRIPTION
Functions
array_any_ok( ITEM, ARRAY [, NAME] )
Ok if any element of ARRAY is ITEM.
array_none_ok( ITEM, ARRAY [, NAME] )
Ok if no element of ARRAY is ITEM.
array_once_ok( ITEM, ARRAY [, NAME] )
Ok if only one element of ARRAY is ITEM.
array_multiple_ok( ITEM, ARRAY [, NAME] )
Ok if more than one element of ARRAY is ITEM.
array_max_ok( NUMBER, ARRAY [, NAME] )
Ok if all elements of ARRAY are numerically less than or equal to NUMBER.
array_min_ok( NUMBER, ARRAY [, NAME] )
Ok if all elements of ARRAY are numerically greater than or equal to NUMBER.
array_maxstr_ok( ITEM, ARRAY [, NAME] )
Ok if all elements of ARRAY are asciibetically less than or equal to MAX.
array_minstr_ok( ITEM, ARRAY [, NAME] )
Ok if all elements of ARRAY are asciibetically greater than or equal to MAX.
array_sum_ok( SUM, ARRAY [, NAME] )
Ok if the numerical sum of ARRAY is SUM.
array_empty_ok( ARRAY [, NAME] )
Ok if the array contains no elements.
array_length_ok( ARRAY, LENGTH [, NAME] )
Ok if the array contains LENGTH number of elements.
array_sortedstr_ascending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is asciibetically greater than or equal to the one before.
array_sortedstr_descending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is asciibetically less than or equal to the one before.
array_sorted_ascending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is numerically greater than or equal to the one before.
array_sorted_descending_ok( ARRAY, [, NAME] )
Ok if each succeeding element is numerically less than or equal to the one before.
SEE ALSO
Test::Data, Test::Data::Scalar, Test::Data::Function, Test::Data::Hash, Test::Builder
SOURCE AVAILABILITY
This source is in Github:
http://github.com/briandfoy/test-data/tree/master
AUTHOR
brian d foy, "<bdfoy@cpan.org>"
COPYRIGHT AND LICENSE
Copyright (c) 2002-2009 brian d foy. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2009-02-12 Array(3pm)