?
Solved

Shell scripting question (line feed)

Posted on 2011-10-25
3
Medium Priority
?
251 Views
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
0
Comment
Question by:Los Angeles1
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
pilson66 earned 2000 total points
ID: 37024740
echo -e "#\n#\n#"
0
 

Author Comment

by:Los Angeles1
ID: 37024802
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
0
 
LVL 8

Assisted Solution

by:pilson66
pilson66 earned 2000 total points
ID: 37024839
while true; do read -p "#"; done
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 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