answersLogoWhite

0

Do-while shell script in ubuntu

Updated: 11/7/2022
User Avatar

Wiki User

11y ago

Best Answer

#!/bin/sh

while /bin/true; do

echo -e "X"

done

Hmm... I hope you are fond of the letter 'X'... :)

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Do-while shell script in ubuntu
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where to find sakaish script in ubuntu?

Sakaish is not an officially recognized script used in any language, and thus is unlikely to be included in Ubuntu, officially or otherwise.


What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


Where is the command shell on Ubuntu?

bash is located in /bin/bash.


Write a shell script to show that user is logged in or not?

You don't need a shell script for that; use either 'whoami' or 'id'


Parse log files-shell script?

There are following shell scripts available at the below mentioned url -1. Shell Script for Log4j Log Analysis and exception reporting2. Log Monitoring Shell Script - email upon errorsHope that's what you are looking for.


What is the Purpose of exit command in Shell of Unix?

The 'exit' command allows you to stop a running shell script at any point and to return a "status" value back to whomever called the shell script. This is a very common practice with shell scripts; sometimes you want to stop the script before it gets to the end of the shell script (for various logic reasons). The 'exit' command also allows you to give a status that any other calling process can use to determine if the shell script ended successfully or not.


How do you compile and run shell script of factorial?

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.


How do you write a shell script which counts the last 10 lines present in a given file?

You don't need a shell script to do this - just use the 'tail' command.


What is a .sh file?

A .sh file is a shell script.


How do you indicate a comment line in a shell script?

With the # symbol.


What are the parts of ubuntu environment?

GNOME X server bash shell for terminal And many other.