Powerful Command-Line Applications in Go (page 9)

@rgerardi

Title: Name of book: description (page number)
Powerful Command-Line Applications in Go (page 9)

I am using Windows to develop the very first command line program.

I am not able to make it work from command line using multiline. \r, \n, \r\n are ignored, so from a echo piped with the -l option, it doesn’t works.

The book doesn’t provide a Windows example for this case.

1 Like

Hello @realtebo .

Thanks for your comment. While the programs and examples should work on Windows, some of the commands that rely on Linux utilities may need to be changed to work on Windows. In this case I assume it’s because echo works differently on Windows.

It would be hard to provide all the examples in all the potential operating system used by the readers so the ones that use command line utilities such as grep or awk assume Linux as I mentioned in the Preface.

Examples that do not rely on external commands should work on Windows.

I hope this helps.

Thanks,
Ricardo