This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compare by content: Possible to ignore first n lines?

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
Asperamanca
Junior Member
Junior Member


Joined: 28 Mar 2005
Posts: 22

PostPosted: Fri Oct 13, 2017 4:18 am    Post subject: Compare by content: Possible to ignore first n lines? Reply with quote

I have a case where I need to compare two deep folder trees. Problem is that all files include a header, where a date and version number of the files is updated via script. If I compare by content, all files are marked as different, because this date and version number has been changed.
However, I'd like to know which files actually have different content apart from that header.

Is there any way, e.g. telling the sync tool to ignore the first n lines in each file?
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7866
Location: Russian Federation

PostPosted: Fri Oct 13, 2017 4:47 am    Post subject: Reply with quote

You can't tell TC to do that, you only can use custom comparer plugin that will ignore first lines...
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34364
Location: Switzerland

PostPosted: Sun Oct 15, 2017 1:04 am    Post subject: Reply with quote

You can use file "filesys" content plugin as a starting point, it has a text compare function "ContentCompareFiles". All you need to do is skip the first X lines per file.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group