4 ms·
Sure you can: dave@cronus $ ./echo -n "-n dave@cronus > " -n dave@cronus $ Not pretty, though.
by ilikejam 15y ago
Sure you can:
dave@cronus $ ./echo -n "-n
dave@cronus > "
-n
dave@cronus $
Not pretty, though.
- mikelward 15y agoYou're right. I should have said "no sane way to do it". :-)
- martinp 15y agoOr echo -en "-n\n".
- mturmon 15y agoCute, but does not work with bash builtin echo, for which two -n's equals one -n. bash-3.2$ echo -n -n foo foobash-3.2$ Like always with echo -n, no matter what you try, it's not portable.
- ilikejam 15y agoSo... [dave@mini ~]$ echo -n "-n foo > " -n foo [dave@mini ~]$ Easy!