Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > File and perl
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 11014 of 11065
Post > Topic >>

File and perl

by rich.japh@[EMAIL PROTECTED] (Richard Lee) May 1, 2008 at 08:45 PM

Hi guys,

I have been running below to gather into a txt file before running perl 
program to analyze the data but I want to transform into 100% perl.
so, right now my little line says

ls -ltr | tail -100 | cut -d' ' -f13 | while read n ; do zcat -d $n | 
grep -i 'server|client' | /usr/bin/program1  | egrep -i 
"bunch|of|other|things"  ; done > /tmp/results

I am looking to replace this w/ perl which I think I can rather do 
easily on latter parts but this below I am sure

ls -ltr | tail -100 | cut -d' ' -f13

bascially I am looking for last 100 files.. is there an easy way to do 
this in perl?(with and w/out modules ?)
I am going to search on this as well...

Let me know please.

thank you.




 4 Posts in Topic:
File and perl
rich.japh@[EMAIL PROTECTE  2008-05-01 20:45:34 
Re: File and perl
chas.owens@[EMAIL PROTECT  2008-05-01 21:13:15 
Re: File and perl
rich.japh@[EMAIL PROTECTE  2008-05-01 21:42:05 
Re: File and perl
kennethwolcott@[EMAIL PRO  2008-05-02 08:39:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 21:40:45 CDT 2008.