Use Find-command to filter out files with specific pattern to terminal [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0
















This question already has an answer here:



  • How do I remove “permission denied” printout statements from the find program?

    3 answers



I want to show all files with the name "index.php" in a specific area of my machine. For this I wrote this code-line:



-find /iu/cuve/u3 -name "index.php"


I want it to only show the lines witch include "index.php" in it, but this command shows a bunch of other lines witch does not include "index.php". Many of them ends with "Permission denied", maybe thats why I can't see the "index.php" part of the line.



I tried to add a -exec grep command to it, but didn't get the results I'm looking for.










share|improve this question













marked as duplicate by steeldriver, Kusalananda linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 1 at 14:21


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

    – Magnarok
    Feb 1 at 14:13
















0
















This question already has an answer here:



  • How do I remove “permission denied” printout statements from the find program?

    3 answers



I want to show all files with the name "index.php" in a specific area of my machine. For this I wrote this code-line:



-find /iu/cuve/u3 -name "index.php"


I want it to only show the lines witch include "index.php" in it, but this command shows a bunch of other lines witch does not include "index.php". Many of them ends with "Permission denied", maybe thats why I can't see the "index.php" part of the line.



I tried to add a -exec grep command to it, but didn't get the results I'm looking for.










share|improve this question













marked as duplicate by steeldriver, Kusalananda linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 1 at 14:21


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

    – Magnarok
    Feb 1 at 14:13














0












0








0









This question already has an answer here:



  • How do I remove “permission denied” printout statements from the find program?

    3 answers



I want to show all files with the name "index.php" in a specific area of my machine. For this I wrote this code-line:



-find /iu/cuve/u3 -name "index.php"


I want it to only show the lines witch include "index.php" in it, but this command shows a bunch of other lines witch does not include "index.php". Many of them ends with "Permission denied", maybe thats why I can't see the "index.php" part of the line.



I tried to add a -exec grep command to it, but didn't get the results I'm looking for.










share|improve this question















This question already has an answer here:



  • How do I remove “permission denied” printout statements from the find program?

    3 answers



I want to show all files with the name "index.php" in a specific area of my machine. For this I wrote this code-line:



-find /iu/cuve/u3 -name "index.php"


I want it to only show the lines witch include "index.php" in it, but this command shows a bunch of other lines witch does not include "index.php". Many of them ends with "Permission denied", maybe thats why I can't see the "index.php" part of the line.



I tried to add a -exec grep command to it, but didn't get the results I'm looking for.





This question already has an answer here:



  • How do I remove “permission denied” printout statements from the find program?

    3 answers







linux grep find






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 1 at 14:03









MagnarokMagnarok

1




1




marked as duplicate by steeldriver, Kusalananda linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 1 at 14:21


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by steeldriver, Kusalananda linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Feb 1 at 14:21


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

    – Magnarok
    Feb 1 at 14:13


















  • Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

    – Magnarok
    Feb 1 at 14:13

















Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

– Magnarok
Feb 1 at 14:13






Thank you @steeldriver. It pointed me in the right direction. Fixed it with this line: "find /iu/cube/u3 index.php 2>&- | grep index.php"

– Magnarok
Feb 1 at 14:13











1 Answer
1






active

oldest

votes


















0














Got my wanted result with:



find /iu/cube/u3 index.php 2>&- | grep index.php





share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Got my wanted result with:



    find /iu/cube/u3 index.php 2>&- | grep index.php





    share|improve this answer



























      0














      Got my wanted result with:



      find /iu/cube/u3 index.php 2>&- | grep index.php





      share|improve this answer

























        0












        0








        0







        Got my wanted result with:



        find /iu/cube/u3 index.php 2>&- | grep index.php





        share|improve this answer













        Got my wanted result with:



        find /iu/cube/u3 index.php 2>&- | grep index.php






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 1 at 14:14









        MagnarokMagnarok

        1




        1












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay