9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to make a perl script using the "open" command to open and read a file, storing the information in said file into a hash structure.
This is what is inside my file-
Celena Standard F 01/24/94 Cancer
Jeniffer Orlowski F 06/24/86 None
Brent Koehler M 12/05/97 HIV
Mao Schleich... (4 Replies)
Discussion started by: Eric1
4 Replies
2. Shell Programming and Scripting
how to display the messages on screen IN PERL such as "
1. Entering while loop" if the script enters a while loop.
2. Checking FILENAME. etc...
3. Print statement is also not helpful.... (1 Reply)
Discussion started by: Rashid Khan
1 Replies
3. Shell Programming and Scripting
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
Discussion started by: asak
1 Replies
4. Shell Programming and Scripting
If I use the below
cut -c37-48, the minus sign does not get appended to the number, as the sign is in the 36th Position.
But, If I use cut -c36-48, the minus sign appears infront of the number, but for positive numbers, it throws an error.
How can this be resolved.. (7 Replies)
Discussion started by: Haimanti
7 Replies
5. Shell Programming and Scripting
hi all,
i have a small problem regarding sorting the keys in a hash.
my %hash;
for($i=0;$i<19;$i++)
{
$hash{$i}=$i;
}
foreach $c (sort keys %hash)
{
print "\n $hash{$c}";
} (1 Reply)
Discussion started by: niteesh_!7
1 Replies
6. Shell Programming and Scripting
Hi,
Is there any quick way to use pull out keys that match a specific regex pattern?
eg
%hash ;
$hash(123,456) = xxx;
$hash(123,457) = xxx;
$hash(123,458) = xxx;
$hash(223,459) = xxx;
I need a fast way to get all the keys that start with 123..
Meaning I should get
... (5 Replies)
Discussion started by: Leion
5 Replies
7. Linux
I need to save information relating to certain files that are projected to deleted.
I am using
find $defPath/archive/sub/subchild -type f -mtime +365 > LOGFILE
cat LOGFILE|
while read line
do
ls -l $line | cut -d" " -f 10-15
done
But, since cut is cutting columns on space (single... (3 Replies)
Discussion started by: ramu_indian
3 Replies
8. Shell Programming and Scripting
hello
I have loop , in this loop im picking names , this names I want to be keys in %hash
but I don't know how to set in every loop entertain different key in the %hash (1 Reply)
Discussion started by: umen
1 Replies
9. Shell Programming and Scripting
Hello everybody!
1. Can someone explain, how to obtain the information about every logical volume in the system?
2. And then list vtoc on every volume in the system?
O.S.: UnixWare 7.1.*
shell: ksh (1 Reply)
Discussion started by: gold4u
1 Replies