LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-20-2012, 09:05 AM   #1
Tekiano
LQ Newbie
 
Registered: Nov 2012
Posts: 12

Rep: Reputation: Disabled
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
 
Old 12-20-2012, 09:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Cygwin, sed] Using filenames as both files and search strings within sed lingh Linux - Newbie 5 10-20-2012 10:38 AM
[SOLVED] how to display the last 10 modified files of a folder? nrbasavaraja Linux - Newbie 8 07-23-2010 12:13 PM
need help - script to display modified date&time of files Pawang Linux - General 3 06-01-2010 02:40 AM
Is there any way to prevent sed from updating file modified time when no match? DennyCrane Linux - General 2 05-01-2009 07:28 AM
gnu make recompiles the source files fully even though the files are not modified yasothamani Linux - Software 4 02-07-2007 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration