---
title: "Discussion on \"read input from user\" | Hashnode"
description: "Discussion on \"read input from user\". #! /bin/bash\necho \"Enter your name: \"\nread name\necho \"Entered name: $name\"\n#multi variables input\necho \"Enter Names:\"\nread name1 name2 name3\necho \"Names are : $name1 , $name2 , $name3\"\n#Take User input on the same line\nread -p \"username:\" user_var\nec..."
url: "https://hashnode.com/posts/read-input-from-user/64455c8319d79dd72da75d9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [read input from user](https://cosmicomkar.hashnode.dev/read-input-from-user?utm_source=hashnode&utm_medium=feed)

#! /bin/bash echo "Enter your name: " read name echo "Entered name: $name" #multi variables input echo "Enter Names:" read name1 name2 name3 echo "Names are : $name1 , $name2 , $name3" #Take User input on the same line read -p "username:" user\_var ec...

Apr 23, 2023 · 1 min read · cosmicomkar.hashnode.dev  
Read the article

-   [#linux](https://hashnode.com/tag/linux)
-   [#linux-for-beginners](https://hashnode.com/tag/linux-for-beginners)
-   [#linux-bash](https://hashnode.com/tag/linux-bash)

## Written by

[Omkar Venkatrao Punjaji](https://hashnode.com/@CosmicOmkar)

@CosmicOmkar · india

  
[View profile](https://hashnode.com/@CosmicOmkar)

open source DevOps , Linux , Data Structure , c, c++, python

Linux , Devops , c , c++ , python

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
