LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Display files which were modified with sed (https://www.linuxquestions.org/questions/linux-general-1/display-files-which-were-modified-with-sed-4175442311/)

Tekiano 12-20-2012 09:05 AM

Display files which were modified with sed
 
Hi,

I need some help to display the name of the files that are modified by this command :
find . -exec sed -i "s/A/B/g" {} \; 2> /dev/null

Thanks

acid_kewpie 12-20-2012 09:11 AM

I can't imagine any way at all to do that. You could search for files containing "B" but there's no way to know they are unique. Matching the modification time might be your best bet.


All times are GMT -5. The time now is 05:59 PM.