Hi !
I have the Idea to make a perl script (better than in bash) to make some configuration on linux.
I think to have some files like param.txt with some lines like:
param_one = ZZZ XX CCCC VV
param_two = ZZZZZZZZZ
param_three = X

so need to check if param_one is in some_file.conf and if it is there test the value .. if it is not .. add to some_file.conf ... I think it should be easy ... right ??

Thanks for any help ..

;)

You could, but you also have to make sure that 1)the file exist, 2)the path to file is correct, and 3)you have permission to read/write the file. If any of those failed, your script won't correctly work. That's all.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.