Wednesday, March 31, 2010

UNIX Shell의 echo command와 newline

newline 없이 echo 하려면
-n : no newline
echo -n text

newline 을 찍어주려면
-e : enable backslash escapes
echo -e "This is line1\nAnd this is line 2"

No comments:

Post a Comment