• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

Shell scripting question (line feed)

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
Los Angeles1
Asked:
Los Angeles1
  • 2
2 Solutions
 
pilson66Commented:
echo -e "#\n#\n#"
0
 
Los Angeles1Author Commented:
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
 
pilson66Commented:
while true; do read -p "#"; done
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now