Timeline for Editing a Java properties file with Bash
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 6, 2018 at 15:39 | answer | added | broc.seib | timeline score: 1 | |
| Apr 8, 2014 at 22:48 | history | edited | Gilles 'SO- stop being evil' |
edited tags
|
|
| Apr 8, 2014 at 13:15 | comment | added | Olivier Grégoire | Indeed, but you can read the complete syntax here on the Properties javadoc. You'll see that the solutions proposed are good enough for the usage. | |
| Apr 8, 2014 at 10:47 | comment | added | strugee | first off, if you want to preserve comments, you probably cannot do this without a parser. second, I would ask your saysadmins for help. you're required to use something that they know, and no one knows exactly what they know more than them. if that made sense. | |
| Apr 8, 2014 at 9:47 | vote | accept | Olivier Grégoire | ||
| Apr 8, 2014 at 9:18 | answer | added | cuonglm | timeline score: 2 | |
| Apr 8, 2014 at 9:18 | answer | added | suspectus | timeline score: 5 | |
| Apr 8, 2014 at 9:17 | comment | added | Olivier Grégoire |
@manatwork: no, there is only one uncommented file.input. Unless a human error occurs. But I shouldn't take that case in account.
|
|
| Apr 8, 2014 at 9:16 | review | First posts | |||
| Apr 8, 2014 at 10:47 | |||||
| Apr 8, 2014 at 9:15 | comment | added | manatwork | Is there any chance the count of uncommented “file.input” entries to not be 1? Especially I'm asking whether it can be missing, in which case the script has to add it. | |
| Apr 8, 2014 at 9:15 | comment | added | Olivier Grégoire | Because modifying this file is only one part of a much more lengthy script. And while I write it, will not maintain it. My sysadmins will do that. It's a requirement for them to know and use unix commands and be able to edit a bash script, most of them don't know python. Also, bash is a requirement on the servers we install and use, but python is not. So while it is present on the very system I will adapt, I'm not sure it will be if the config file and the script I'm writing are migrated to another system. | |
| Apr 8, 2014 at 9:10 | comment | added | manatwork | Your profile says “JavaEE and Python developer.” So why not Python? | |
| Apr 8, 2014 at 9:00 | history | asked | Olivier Grégoire | CC BY-SA 3.0 |