How do I include the hypen or dash character (-) as an argument to yes in Ubuntu?
In FreeBSD, I can do this:
$ yes "-tcp" | head -n 2
-tcp
-tcp
But in Ubuntu, I get an error:
$ yes "-tcp" | head -n 2
yes: invalid option -- 't'
Try `yes --help' for more information.
I think this will work:
The double-dash tells yes to stop parsing options.