By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,812 Members | 1,978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,812 IT Pros & Developers. It's quick & easy.

Need help on Perl oneliner

P: 48
Hi
I have a file with sample test as follows

abc04,10.20.30.30
abc05,10.30.40.50
abc06,10.40.50.50.50

In my perl script if it searchs for abc04(can be hardcoded) it should give the address(10.20.30.30) corresponding to it and store it in a variable.

I will be able to do this with a normal perl program(using while loop) but I nned to do it using perl liner....

It will be really helpful if someone can help me in this..

Thanks
Jul 17 '08 #1
Share this Question
Share on Google+
1 Reply


numberwhun
Expert Mod 2.5K+
P: 3,503
This sounds too much like school work to me and I need to let you know that if it is such, that posting here for the answers is against site policy.

On the other hand, you can try to write it and then if you get stuck, post your code here (enclosed in the required code tags) and we will help you get it working.

Regards,

Jeff
Jul 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.