Currently I’m using Windows.
I need a script that opens a certain file and appends a string to it. The string itself has 5 – 10 lines.
The string appended depends upon given script arguments – some parts of the string are arguments themself, others are static.
I tried doing this with a .bat file in windows, but I didn’t really feel like it was suited for the job. Seemed too complicated.
Can this be done easier in Linux? Or somehow practical in Windows? I don’t want to write C/C++ programs for such a simple task, just because the operating system doesn’t provide a simple way to build similar things.
Basicaly, I just want to know which tool should I use (on Windows and Linux) and whether it’s easier to build on Windows or Linux.
Use cygwin in Windows and then do it via the cygwin shell as told by Ernest. bat files are horrible. Linux IMO is much much smarter and efficient than Windows, you should switch to it but If you really need to stick to Windows, install cygwin.