User Profile
VinayNaguru
Copper Contributor
Joined 3 years ago
User Widgets
Recent Discussions
Re: Need to compare only specific lines
Hi Harm_Veenstra, Sure. Below is the part of the script. Script need to identify only the lines which doesn't have '#' and highlighted in red color (there is no color code in original file. Highlighted by me for easy identification) # This parameter defines whether to use CORS filter on Auth server security filter chain. # This parameter can only be set during initialization. # # Default=true # # auth.enable.corsfilter=true auth.enable.corsfilter=true # This parameter defines the number of days that a user can keep a password before it is expired # This parameter can only be set during initialization. # # Default=60 # # auth.password.expiration.days=60 auth.password.expiration.days=60 # This parameter defines the number of previous passwords that cannot be used for a new password. # This parameter can only be set during initialization. # # Default=1 # # auth.password.history.size=1 auth.password.history.size=12.1KViews0likes10CommentsNeed to compare only specific lines
Hi, Can someone help to write a script to compare only few required lines between configuration files. For example if file1 has key value pair stating abc=123, it should compare with another file file2 and show the result if there is any changes in that specified line. In my configuration file there will hundreds of lines. So those lines should be memorized first for easy comparing.2.1KViews0likes12Comments
Groups
Recent Blog Articles
No content to show