
iphone
User
Aug 4, 2010, 12:26 PM
Views: 5153
|
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)
|