Menu Right

Top Social Icons

Responsive Full Width Ad

Left Sidebar
Left Sidebar
Featured News
Right Sidebar
Right Sidebar

Shell Scripting Tutorial for Beginners 3 - Read User Input - Learn Online

Read command - The read command allows you to prompt for input and store it in a variable. shell allows to prompt for user input.
read varname [more vars]
read –p "prompt" varname [more vars]

words entered by user are assigned to varname and “more vars”
last variable gets rest of input line.


  1. Web Developer Blog1 March 2017 at 15:45

    Is shell relevant in 2017?

  2. Usman Abdullahi Abbati1 March 2017 at 15:45

    please sir can you draft me the clue of this?
    Q1) What is the output of the following Java program:

    public class ArrayOutput {
    public static void main(String[] args) {
    int[] a;
    a = new int[10];
    for(int i = 0; i < a.length; i++){
    if(i % 2 == 0)
    a[i] = i;
    a[i] = i * 2;
    System.out.print(a[i] + " ");

    Q2) Modify the program of Q1 to produce the following output:
    0 1 4 3 16 5 36 7 64 9

  3. can you explain me this line of code please it's in
    Regex.Replace("ThisIsACamelCaseString", "([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", "$1 ")


Note: only a member of this blog may post a comment.

Responsive Full Width Ad

Copyright © 2016 Hostrings, powered by Blogger.