Basic Unix Questions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Basic Unix Questions
# 1  
Old 11-04-2005
Unix ?

OK, here's a question from a true UNIX newb: How does one make a 20 line file? I'm lost. Smilie

OK, I figured it out. Smilie

Last edited by Kitchen Zinc; 11-04-2005 at 07:46 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

some basic unix questions pls iam a newbie

what is a assembler what isa interpreter what is a compiler what is a socket what is a port what is meant by listening to a port how we do it how to know version and standard of unix one is using when one is on public access unix account how to see a jobid in... (1 Reply)
Discussion started by: scimitar
1 Replies

2. UNIX for Dummies Questions & Answers

some basic questions about unix ..

Hi all today i gone through worst interview of my life that for hour questions were so basic but i never though about them now i am figuring out answers my self but i would appreciate if you ppl help me ... i am listing some of the questions i remember .. 1 ) $ cat a.sh #! /usr/bin/ksh... (4 Replies)
Discussion started by: zedex
4 Replies

3. UNIX for Dummies Questions & Answers

hp-ux basic questions

I have multiple questions How to list or find only Nov month's files? How can I get state of process like running, stop, or sleep etc? How can I check dependences of processes? plz ans any if u can thx regards, Mazhar Hussain (3 Replies)
Discussion started by: mazhar99
3 Replies

4. UNIX for Dummies Questions & Answers

Basic security questions

Hey guys, I've seen this posted a few times when i searched but I kinda want to know the cleanest way of doing it. On Solaris 8 and Solaris 9 What is the best way to disable telnet ssh1 and remote root login premanently? I've seen posts that say edit /etc/services edit this edit that... (3 Replies)
Discussion started by: kingdbag
3 Replies

5. Programming

Basic questions on writing a Unix Service (newbie help!)

Hi there. I've got 12 years experience writing C++ on Windows, and 3 years C# on Windows. Now my boss wants me to write a C++ app to run on Unix as a multithreaded 'service' (i.e. a program that runs with no user intervention). Some quick questions for The Experts: * Whats the best C++... (3 Replies)
Discussion started by: Rutland Gizz
3 Replies

6. UNIX for Dummies Questions & Answers

Some basic questions

Hi- Newbie here with some basic questions: 1) I can't get alias to work. I tried alias ll='ls -al', but it doesn't work. When just typing 'alias', the new definition doesn't appear. I'm in a bash shell -- is that the problem. I tried switching to csh, but that didn't seem to help. This... (5 Replies)
Discussion started by: Aworstell
5 Replies

7. UNIX for Dummies Questions & Answers

Basic SFTP questions

I'm trying to find out what all is involved with setting up SFTP? 1) Do Solaris machines come with a SFTP server and client already installed. 2) If so would I have to install SFTP clients on windows, if I want to transfer files to a Solaris box? 3) If SFTP doesn't come prepackaged would I... (1 Reply)
Discussion started by: JohnRodey
1 Replies

8. UNIX for Dummies Questions & Answers

basic UNIX questions

Can somebody please tell me a little about UNIX OS. For instance, is it ideal for digital media or how easy is it to get help and support? (3 Replies)
Discussion started by: buk5d
3 Replies
Login or Register to Ask a Question
Statistics::Basic::Correlation(3pm)			User Contributed Perl Documentation		       Statistics::Basic::Correlation(3pm)

NAME
Statistics::Basic::Correlation - find the correlation between two lists SYNOPSIS
Invoke it this way: my $correlation = correlation( [1,2,3], [1,2,3] ); Or this way: my $v1 = vector(1,2,3); my $v2 = vector(1,2,3); my $cor = corr($v1,$v2); And then either query the values or print them like so: print "The correlation between $v1 and $v2: $correlation "; my $cq = $cor->query; my $c0 = 0+$correlation; Create a 20 point "moving" correlation like so: use Statistics::Basic qw(:all nofill); my $sth = $dbh->prepare("select col1,col2 from data where something"); my $len = 20; my $cor = corr()->set_size($len); $sth->execute or die $dbh->errstr; $sth->bind_columns( my ($lhs, $rhs) ) or die $dbh->errstr; my $count = $len; while( $sth->fetch ) { $cor->insert( $lhs, $rhs ); if( defined( my $c = $cor->query ) ) { print "Correlation: $c "; } # This would also work: # print "Correlation: $cor " if $cor->query_filled; } METHODS
This list of methods skips the methods inherited from Statistics::Basic::_TwoVectorBase (things like query(), insert(), and ginsert()). new() Create a new Statistics::Basic::Correlation object. This function takes two arguments -- which can either be arrayrefs or Statistics::Basic::Vector objects. This function is called when the correlation() shortcut-function is called. query_covariance() Returns the Statistics::Basic::Covariance object used to calculate the correlation. query_vector1() Return the Statistics::Basic::Vector for the first vector. query_vector2() Return the Statistics::Basic::Vector object for the second vector. query_mean1() Returns the Statistics::Basic::Mean object for the first vector. query_mean2() Returns the Statistics::Basic::Mean object for the second vector. OVERLOADS
This object is overloaded. It tries to return an appropriate string for the calculation or the value of the computation in numeric context. In boolean context, this object is always true (even when empty). AUTHOR
Paul Miller "<jettero@cpan.org>" COPYRIGHT
Copyright 2012 Paul Miller -- Licensed under the LGPL SEE ALSO
perl(1), Statistics::Basic, Statistics::Basic::_TwoVectorBase, Statistics::Basic::Vector perl v5.14.2 2012-01-23 Statistics::Basic::Correlation(3pm)