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?

Google Fight Against Low Quality and Spammy Content

  Google's ongoing battle against spammy and low-quality content in search results is an essential aspect of maintaining the platform's credibility and usefulness. Here are some of the new strategies and policies Google is implementing to combat these issues: Improved Quality Ranking : Google is enhancing its core ranking algorithms to prioritize high-quality and original content while reducing the visibility of unoriginal or spammy content in search results. New Spam Policies : Google is updating its spam policies to address emerging tactics used by spammers. This includes targeting practices such as expired websites repurposed as spam repositories, obituary spam, and other manipulative behaviors. Reducing Unoriginal Results : Google is refining its ranking systems to identify and minimize unhelpful, unoriginal content. This includes pages created specifically to match certain search queries and content that prioritizes search engine optimization over user experience. Scaled C

Contextual Design and Development is the Driving Force Behind all Successful Mobile Applications

The time of ordinary custom web application design & development is long gone. Today the focus is on contextual design and development. It is the rise in the popularity of mobile applications that has provided the impetus for giving importance to ‘context’ when it comes to app or web development. Let’s focus our attention on mobile applications and why mobile applications need to be developed keeping the context in mind. Because they are used in diverse locations Let’s face it. We all love mobile apps because they can be used just about anywhere and at any given point of time. Yes, that’s right, they can be used in offices, on a train, in the kitchen, movie theatre and the list just goes on. So, the app needs to be developed in context of the location. Different users have different needs when it comes to a mobile app and these needs, in part, are determined by their location. For e.g. if a developer thinks a particular app that is in the process of being developed will onl