Shell scripting question (line feed)

Posted on 2011-10-25
Last Modified: 2012-05-12
If I use an echo in a script, I get a blank line

What I want is to show a


Open in new window

like the use has hit the return screen inside of the shell,

How can I do this
Question by:Los Angeles1
    LVL 8

    Accepted Solution

    echo -e "#\n#\n#"

    Author Comment

    by:Los Angeles1
    Actually I wanted to simulate a line feed, if that is possible.  I wanted to force the shell script to think the user had just entered a return without a command
    LVL 8

    Assisted Solution

    while true; do read -p "#"; done

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now