Problems with linebreak in terminal (\n doesn't create linebreak)

Hello! I've recently started to migrate my embedded software development from my laptop to my gorgeous new iMac, but I've come across a rather annoying problem.
Linebreaks doesn't work properly in the terminal. If I type
echo "Hello \n Linebreak" it just types Hello \n Linebreak and doesn't interpret the newline-character correctly.
My version of Mac OS X and keyboard are both Swedish (Pro-Swe). Any hints or tips that could help me take the final step and finally switch my dell laptop to a macbook?
Thanks in advance / Martin

Hi Martin,
I discovered that it also works in zsh.
Welcome to zsh!
If you are using zsh, then you don't need -e unless you explicitly set the BSD_ECHO option.
If you are using bash instead, but don't want to add an option -e, then put the following into your .bashrc or .bash_profile, whicherver appropriate:
shopt -s xpg_echo
Another method is to use
echo $'foo
bar'
This works both in bash and zsh.

Similar Messages

  • Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • I have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    What have you tried so far in terms of troubleshooting this issue?  Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
    What happens if you try to reset the device with it still connected to the PC?
    How to reset iPod
    Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • HT2731 I have a problem with my iPad 1 . When I create new g Id , I have a Clam requied update iOS last vesion  while this version is 5.11 . Help me. Thanks

    I have a problem with my iPad 1 . When I create new g Id , I have a Clam requied update iOS last vesion  while this version is 5.11 . Help me. Thanks

    Before I update my iOS auto is 5.11 . Apter I reset my iPad and crease new Id then error Appear . I can not fix it . Thanks your support

  • HT201365 Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much

    Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much.
    Lydang
    <E-mails Edited by Host>

    Hello Apple, I'm having a problem with activating my iPad 4. I created iCloud account which differs from Apple account but I now forget my iCloud password. How can settle it ? Thank you so much.
    Lydang
    <E-mails Edited by Host>

  • Bandwith Problem with Flashes over Terminal Server

    I get huge problems with viewing flash on Citrix Terminal
    Server. Everytime a user opens up a website with Flashes in it, it
    consumes the rest off the bandwith. This slows down all other user
    on the site. This happens over RDP and ICA Connection. Microsoft
    dont want to have a solution for this problem. they know it but...
    . The same ist for Citrix. I hope that Adobe can give me an
    acceptable solution. What can i do, to tune up Flashes over the
    Terminal Server?
    Thanks a lot for your help.

    Leo,
       What is your Vc version ? Also pls do check the SAP note 886209 if it helps in any way .
      We had some deployment issues which were fixed using this .
    Rgds

  • Problem with keyborad functionality, key pad doesn...

    i face a problem with my n81 2 gb.
    sometime not all time the right top, red and 'c' button not working properly, if i press red button it works as the down arrow button, the right top button works the 'c' button and 'c' button doesnt work..... it seems that somebody is clicking the button and the phone light is on at that time thogh i keep the phone untouched on my table.
    it happend several times, in the 7/8months of my phone's life.
    may i get any help from you. thank u in advance.

    Hi,
    the managed bean that handles the switch, can you try setting its scope to view instead of request ?
    Frank

  • Problem with Mail...it doesn't shut down

    I have two Gmail accounts (IMAP) which I use with Mail app. When I shut the computer down, I have to force quit Mail or open the activities (cmd-0) and close all the activities...if I don't do that I'm not able to shut the mac down.I can't understand how to solve this problem...I've already tried to reinstall Mail, I repaired the permissions, I set up the accounts several times but nothing has changed...
    Hope someone will be able to help me!
    Thanks

    I have the same problem with my MacPro using 10.5.8. Whey trying to shut down computer, if Address Book or Mail is open they must be "Force Quit" to continue with Shut Down. Mail version 3.6 and Address Book version 4.1.2. Very frustrating.

  • Problem with premiere elements 3.0 (titles when creating DVD)

    I am using version 3.0 and when you go to create DVD there should be the option to insert titles or menu page at the start of your DVD, well that has disappeared from my programme.  We had problems with the pc so had to reinstall alot of the programmes on it but the titles never came back when we re-installed the programme.  I have tried everything i can think of but there are still no titles or menus available.  Any suggestions would be very welcome.

    Give this a try and see if it helps.
    http://kb2.adobe.com/cps/329/329802.html
    Also, if you are installing on Vista, be sure to install the 3.02 update also.

  • Client Having Problems With Acrobat 11.0.3 and files created in earlier versions

    We are noticing problems with our PDF's depending on the version of Adobe they are viewed with.
    If the PDF File was created pre 11.0.3 and you view it with 11.0.3 you only see squares in the narratives from SQL/Oracle Text Fields .
    If the PDF File was created with 11.0.3 and you view it with 11.0.3, it is fine.
    Update.  As with most Software/Support services the correct information is not always received and must be forced out of the Customers. 
    The PDF files are drawing of Auto Accidents created in Adobe Acrobat and stored on a Microsoft Server Network.  The files are then merged inside a Microsoft Visual FoxPro 9.0 SP2 Application with Data received from Microfoft SQL Server 2005 Database  through a ODBC driver to a FoxPro Cursor and then created with a Visual FoxPro Report Form. The VFP Report form page that displaies/prints the PDF file is a OLE File Object and is created / Printed through Amyuni 4.5xx Converter to a PDF file and then viewed with Adobe Acrobat 11.0.3.

    There are software packages that will do those checks. So in that sense there is a way to check. However, that would be a programming task and not necessarily simple. So I really can't help you on the programming aspect (I would refer you to something like the SDK forum for programming).
    To check the file, you would normally open the document properties (ctrl-D). The general tab provides the version number and the fonts tab will tell you what fonts are used and embedded.

  • Problem with font in terminal.app

    Hello all
    I tried to use the font Inconsolata (downloadable from http://www.levien.com/type/myfonts/inconsolata.html) with the terminal.app. Prior to the update to snow leopard everything was alright. But now this font doesn't render anymore in the terminal.app (although it worked once till the next restart also under snow leopard!). Strange thing is, the font works absolutely normal in all other apps (e.g. macvim oder texteditor). So the font seems to be ok. But why does the font not work any more in the terminal.app? Is there a special font-cache for the terminal? I already tried to delete the user and the system font cache.
    A picture might help to understand the problem:
    http://dl.dropbox.com/u/11881979/Bildschirmfoto%202010-09-27%20um%2021.54.47.png
    Some hints on how to remedy this problem?
    Greetings
    Jerri

    That is very strange. OpenType was the format that had the least issues as Apple worked out the early bugs in the complete 64 bit rewrite of the font engine in Snow Leopard. Type 1 PostScript was where the majority of the trouble was.
    As I noted above, I had no trouble with the font, so can only assume there's some sort of issue with your system. At least the TrueType version works.
    The only thing not done was reinstalling the OS. If you want to take the time to try that, back up the drive and run the OS X installer from the desktop. That will put a fresh copy of OS X on the drive while keeping all of your third party apps, preferences and such intact. Then apply all available updates.

  • 10.6.8 introduces several problem with mail, on one machine doesn't start on another it can't be seen from Safari, is that normal?

    I don't what's going on with 10.6.8
    Mail is suffering several problems.
    first of all, I made all the standard routines... permissions, etc.
    1) on one machine it starts, the dock icon is bouncing endless, and even forcing the index rebuilt, doesn't help.
    2) on another machine, mail is not recognized by Safari, it is not there it says (My fear is that is Safari the problem? Strange)...
    Do you have any other issue with Mail?

    I have reinstalled the combo update, last night... The Mail app works ok on one mac, but is isolated, so no other app can send to Mail.app any email content.
    Here you have the snapshots.
    and this is the info.
    I don't know what to do more... Shall I fill a bug report?

  • Problems with building web services - tutorial doesn't work

    I've been going through this tutorial from technet.oracle.com -
    trying to deploy the example stateless session bean service.
    First problem comes when running the deploy command -
    java -jar <j2ee_home>/admin.jar ormi://<host> <uid> <pwd> -deploy -file ejbws.ear -deploymentName ejbws.
    This command fails insisting that it can't find application.xml (even though it is clearly in the .ear file).
    Got around this by manually editing the server.xml file and bouncing OC4J. Then did the bind command. The first steps of compiling and running the client application then worked fine - I could see the .wsdl file and download the proxy jar.
    But when I came to actually run the client I got the error:
    Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
    pported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>oracle.j2ee.xanadu.JasperGenerationError: no source generated during code generation!: error: I/O error in UrlBridge to: file:E:\ORACLE\j2ee\home\application-deployments\ejbws\ejbws\temp\__session_bean_rpc\Hello.class.<br>binary class definition not found: Hello
    By manually copying the Hello.class file into the __session_bean_rpc directory I was able to get the example to run.
    But how do I get it do deploy correctly in the first place????
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    I ran into the EXACT same problem described by Tracy, and I assembled my .ear file manually.
    According the error message, it would appear that the server is looking for the EJB remote interface in the ../temp/__session_bean_rpc directory when it is trying to generate its session bean wrapper class. As Tracy notes, when the file Hello.class is copied into the directory, the problem goes away. Furthermore, once the wrapper class has been generated, Hello.class is no longer needed and can be deleted from the directory.
    Better still, I found a way to deploy the web services web module and make the error go away. I created the ejbws.war file with a copy of the remote interface Hello.class in the WEB-INF/classes directory. This makes the class available when the wrapper class is generated.
    The WebServicesAssembler tool doesn't copy the EJB remote interfaces into the .war web module, which would appear to be
    necessary.
    Hope this helps.

  • Problem with Adobe Forms - Layout designer doesn't start

    Hello Masters:
    I have a problem in transaction SFP. when I try to open the layout tab, I'm receiving the next error message: "Could not start Layout Designer".
    I installed Adobe reader 9, LiveCycle Designer ES 8.2 and then I re-installed SAPGUI, but it doesn´t work yet.
    Does anybody know wath is the problem?
    Thank you.

    Hi,
    This error due to installation. Please confirm Java stack is implemented.
    Please have a look at this to:
    https://service.sap.com/sap/support/notes/834573
    Regards,
    Karthik.

  • Problem with PDF, link in website doesn't find the adobe

    We are using Windows XP, Internet Explorer 8 and Adobe Reader 9.0.
    There is a website with a link to open the dokument with adobe. But when we take a klick on this link adobe isn't found. The format of the file is any file and there only cryptical sign in the file, which would be open. Please - I need help!

    I have the same problem - shocked that this hasn't been addressed by Adobe or Microsoft.  It began with recent updates.  Adobe Reader will not open a .pdf file on the web.  I sometimes get the following dialog but mostly I get a blank screen with "Done" in the status bar.
    If I open a .pdf from my hard drive I get a message about protected mode. If I click on the link in the message, I get Adobe instructions about turning off protected mode - but it is already turned off.  If i cancel that message i can open a local .pdf.

Maybe you are looking for

  • Cannot update my itunes ?

    when i try yo update my iunes via checking for updates i get this message (errors occurred while installing the updates if the problem persists choose tools download only and try installing it manually ) when i press download only thing happens ?

  • K8N master2-far doesn't detect Areca 1220 raid controller

    Today i purchased the last components for my system. Everything works perfectly except for my Areca 1220 8x pci-e raid controller. As i feared the controller is nowhere to be seen, not in the bios, not in windows. I already had bios version v1.10 but

  • Alternative AEBS setup to Bridged mode? Qwest DSL, ActionTec GT701

    I just upgraded to the new dual mode AEBS and it's a different setup than my old Airport Extreme that died. Things are working OK at the moment with the AEBS in bridge mode (which is required to avoid the double NAT error), letting the GT701 handle P

  • HttpSessionResponse response

    I have a redirect servlet that does redirect to the correct servlet based on the user input. The problem I am having is that I am unable to get the values passed from the original html page to the redirect servlet to the subsequent servlet. According

  • What is meant by a resource leak ?

    What is meant by a resource leak ?