Sponsored Content
Top Forums Shell Programming and Scripting Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report Post 302468527 by muraliinfy04 on Wednesday 3rd of November 2010 04:41:05 AM
Old 11-03-2010
Thanks for the response. But here i will tell you the scenario.Here we are asking our vendor to setup the configuration as per our specifications.But what happened was previously there is a mismatch in the setup configured by vendor and our setup file.There the problem came.So, My FO asked me to write a script that compare the two files and list the differences in a separate file.Hope you understand it.If any clarification is required please fell free to post the reply.....
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to parse config variables from external file to shell script

How do i use a config.txt to recursively pass a set of variables to a shell script eg my config.txt looks like this : path=c://dataset/set1 v1= a.bin v2= b.bin path=c://dataset/set2 v1= xy.bin v2= abc.bin .................. and so on . and my testscript : (2 Replies)
Discussion started by: pradsh
2 Replies

2. Shell Programming and Scripting

Edit a config file using shell script

I need to edit a config file using shell script. i.e., Search with the 'key' string and edit the 'value'. For eg: below is what I have in the config file "configfile.cfg". Key1=OldValue1 Key2=OldValue2 I want to search for "Key1" and change "OldValue1" to "NewValue1" Thanks for your... (7 Replies)
Discussion started by: rajeshomallur
7 Replies

3. Shell Programming and Scripting

Script to compare all the config files in a cluster of servers.

Hello Lads! Climbing the shell scripting learning curve, i am faced with yet another obstacle! Here's the challenge in front of me : 1) I have 15 servers in a cluster,all of them have the same config files by name : /home/apps/xrm/App_B.cfg 2) The developers change the entries in the... (5 Replies)
Discussion started by: rdlover
5 Replies

4. Shell Programming and Scripting

how to access variables in a config file inside a shell script

I'm writing a shell script. I want to put the variables in a separate config files and use those inside my script. e.g. the config file (temp.conf)will have the values like mapping=123 file_name=xyz.txt I want to access these variables in temp.conf(i.e. mapping and file_name) from inside the... (7 Replies)
Discussion started by: badrimohanty
7 Replies

5. Shell Programming and Scripting

parsing config file to create new config files

Hi, I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below. I will be using the config file as mentioned below: (config.txt) country:a,b city:1,2 type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies

6. Shell Programming and Scripting

simple join for multiple files and produce 3 outputs

sh script file1 filea fileb filec ................filez. >>output1 & output2 &output3 file1 z10 1873 1920 z_number1_E59 z10 2042 2090 z_number2_E59 Z22 2476 2560 z_number3_E59 Z22 2838 2915 z_number4_E59 z1 1873 1920 z_number1_E60 z1 ... (9 Replies)
Discussion started by: stateperl
9 Replies

7. Red Hat

Apache virtual host config vs global config problem

Hi folks, I am trying to configure Apache webserver and also a virtual host inside this webserver. For Global server config: /var/www/html/index.html For virtual host config: /var/www/virtual/index.html Both client10 & www10 are pointing to 192.168.122.10 IP address. BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies

8. Shell Programming and Scripting

Update config file using shell script in Solaris 5.10

hi I need to update the value in config.txt value using shell script example: lets say a value in config.txt file is as SEQUENCE=1 after some iteration as the loop ends , the SEQUENCE should get update in the config.txt file with a new value of SEQUENCE=2. also , can anyone please help me... (7 Replies)
Discussion started by: ravidwivedi2288
7 Replies

9. Windows & DOS: Issues & Discussions

(VS 2008) New build config looking files from other folder build config

Hi Team, My new build configuration always looking for the files from the build where i copied from. please help me to resolve this. I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies

10. Shell Programming and Scripting

Shell script to pass the config file lines as variable on the respective called function on a script

I want to make a config file which contain all the paths. i want to read the config file line by line and pass as an argument on my below function. Replace all the path with reading config path line by line and pass in respective functions. how can i achieve that? Kindly guide. ... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
SETUPCON(1)						    Console-setup User's Manual 					       SETUPCON(1)

NAME
setupcon - sets up the font and the keyboard on the console SYNOPSIS
setupcon [OPTION]... [VARIANT] DESCRIPTION
setupcon is a program for fast and easy setup of the font and the keyboard on the console. Most of the time you invoke setupcon without arguments. The keyboard configuration is specified in ~/.keyboard or /etc/default/keyboard. The font configuration is specified in ~/.console-setup or /etc/default/console-setup. Consult keyboard(5) and console-setup(5) for instructions how to configure these two files. If you have to switch often between different encodings, keyboards or languages, you can prepare several alternative configuration files for setupcon. Suppose that most of the time you will use Greek language with Greek keyboard layout, but sometimes you need to type in Ger- man with German keyboard layout. In this situation you should customize the main configuration files (keyboard and console-setup) for Greek. Also, create alternative configuration files for German named keyboard.german and console-setup.german. Then in order to configure the console for Greek you will simply run the command with no arguments: setupcon and in order to configure the console for German you will use setupcon german. OPTIONS
VARIANT Specifies which configuration file to use. With no variant, the configuration files of setupcon are named console-setup and key- board. On the other hand, if you use e.g. chukchi as VARIANT then the configuration files are console-setup.chukchi and key- board.chukchi. In this way you can have easy access to several different configurations - for example one for the Chukchi language and another for the default configuration. -v, --verbose Be more verbose. Use this option if something goes wrong or while experimenting with the configuration files. -k, --keyboard-only Setup the keyboard only, do not setup the font or the terminal. On Linux it is enough to do this configuration only once. -f, --font-only Setup the font only, do not setup the keyboard or the terminal. On Linux this configuration should be repeated each time a new con- sole driver is activated (for example when the frame buffer becomes active). -t, --terminal-only Setup the terminal only, do not setup the keyboard or the font. --current-tty Setup the only the current virtual terminal. --force Do not check whether we are on the console. Notice that you can be forced to hard-reboot your computer if you run setupcon with this option and the screen is controlled by a X server. --save This option can be useful if you want to use setupcon early in the boot process while /usr is not yet mounted and the required data are not available. This option will make setupcon copy the required files in /etc/console-setup/ in order to make them available before /usr is mounted. If you use setupcon early in the boot process, then you should run it with this option after every change of the console configuration. --save-only The same as --save, but does not setup anything. This option can be useful if you want to save the required files while the screen is controlled by a X server. --save-keyboard FILE For use by initrd builders. Do not configure anything. Save an usable keyboard layout in FILE. --setup-dir DIR For use by initrd builders. Do not configure anything. Arrange in the directory DIR everything necessary in order to configure the console. The file DIR/morefiles lists all binaries the initrd builder has to install in the initrd image. All other files in DIR have to be copied unchanged in the initrd. In order to configure the console one has to run the script DIR/bin/setupcon. -h, --help Display usage information. FILES
~/.console-setup ~/.keyboard /etc/default/console-setup /etc/default/keyboard /etc/default/console-setup.VARIANT /etc/default/keyboard.VARIANT /etc/console-setup/ SEE ALSO
keyboard(5), console-setup(5) console-setup 2011-03-17 SETUPCON(1)
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy