I've got configurations files in two differents directory. Each configuration files contains some information that I must have in order to send specific command.
I do not know how to do it. I belive I need a loop in function but I can't make it work.
Extension of configuration files are .cfg
The current directory is :
_TOOLS/_CONFIG
The Directory were are stored the OLD configuration files is :
Using the hash # as a field separator in config file is a bad choice and may lead to confusion.
By convention, the # is used for commenting lines, so i suggest you to choose another delimiter ( :;, colon in the example below) so you will stay compliant with the standard.
sed 's/#/:/g' _TOOLS/_CONFIG/config.cfg > _TOOLS/_CONFIG/newconfig.cfg
Thanks for the info but I can't change this. Is the way all configurations files are made. I am not the owner of the configuration files so I can't change them.
I will try this. I believe I will have to send this command line on both of directories to create a temporary file and then use a loop to read it line by line to send my specific command.