Hi,
I want to print "-n" in shell.
i tried follwoing:
echo -n "-n"
but it did not work.
Please help.
Printable View
Hi,
I want to print "-n" in shell.
i tried follwoing:
echo -n "-n"
but it did not work.
Please help.
I've had a similar issue. This worked for me:
orCode:echo - -n
depending on what you are trying to do. I don't know why just one dash there works, instead of the usual "dash dash" to end options.Code:echo -n - -n
For greater flexibility you may want to look at printf:
Code:printf "-n"