\n: Difference between revisions

From Hackepedia
Jump to navigationJump to search
No edit summary
 
(No difference)

Latest revision as of 11:58, 29 December 2005

\n is often used as a newline. In the case of shell, you have to escape the \n with an \ as you can see:

# printf hello
hello# printf hello\\n
hello

In typing examples, \n usually just means you should hit the [Enter] key.