CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [BillKSmith] Trying to print all the lines in a file with a .c extension in it: Edit Log



iphone
User

Aug 4, 2010, 12:26 PM


Views: 1947
Re: [BillKSmith] Trying to print all the lines in a file with a .c extension in it

Let me explain clearly on my requirement for #1.

print $file_name if grep /$file_name/, (@file_2, @file_3);-->Here we are grepping for the file name in file2 and file3.So,if a file name is dstask.c in file2 and file3 and if we are grepping for a file task.c in file2 and file3,dstask.c is going to get printed.My requirement is I only need to print files with name task.c in file2 and file3,butnot dstaskc.

Thanks


(This post was edited by iphone on Aug 5, 2010, 11:12 AM)


Edit Log:
Post edited by iphone (User) on Aug 5, 2010, 11:12 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives