Skip to main content

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.
Syntax:
read varname [more vars]
or
read –p "prompt" varname [more vars]

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


Comments

  1. Web Developer Blog1 March 2017 at 15:45

    Is shell relevant in 2017?

    ReplyDelete
  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;
    else
    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

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

    ReplyDelete

Post a Comment

Popular posts from this blog

C++ Programming Tutorial - How to Install Code::Blocks in Ubuntu Linux - Learn Online

Installing Code::Blocks How do I Install Code::Blocks HOWTO: Installing Code::Blocks 10.05 How do you install Irrlicht on Code::Blocks? How do you install CodeBlock on ubuntu? codeblocks /bin/sh: g++: not found Installing codeblocks on ubuntu Installing Code::Blocks on Ubuntu 10.04?

How To Install Kali Linux in VirtualBox - Learn Online

in this video I am going to sho you How to install Kali Linux in Virtualbox : Step-by-step . This is A detailed guide on installing Kali Linux on VirtualBox. I am going to show How to Install Kali Linux 2016 + Guest Additions on VirtualBox. Install Kali linux 2.0 on Virtual Box Step by Step Install Kali LInux 2 in VirtualBox Installing Kali Linux 2016.1 on VirtualBox

How to install Skype on Ubuntu Linux 13.04/12.10/12.04 x64/x32 bit - Learn Online

Required commands to install skype sudo dpkg --add-architecture i386 sudo apt-get update sudo add-apt-repository "deb $(lsb_release -sc) partner" sudo apt-get update && sudo apt-get install skype Download Skype for Linux, get Skype for Linux How to Install Skype Using Terminal on Ubuntu How to install Skype with 13.04 How do I install Skype Install Skype on Ubuntu 12.04 LTS 64-bit How to install Skype in Ubuntu 13.04 How to get Skype for Ubuntu How to install skype in ubuntu 12.04 Latest Skype Release Added to Ubuntu Software Center How do I add Skype to my version of Ubuntu Skype for Ubuntu (32-bit) How to get Skype video call to work in Ubuntu How to Get Rid of Skype on Ubuntu How to Install Skype Wrapper and Integrate Skype into Ubuntu