Need quick help

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
# 1  
Hammer & Screwdriver Need quick help

I have one script that named
echo "Enter your name:"
read name

Enter your name:

What I need it should take Input in the same prompt(mean to say dun go for next line) like given below.
Enter your name:Sanjay

# 2  
This sounds like homework.
One way, depending on your version of echo
echo "enter your name \c"
read name

echo -n "Enter your name"
read name

Don't ask for homework help oon the forums - against the rules
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #554
Difficulty: Medium
Using printf() in C, %d formats a decimal variable or literal.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Quick egrep help

Hi, could someone tell my why this doesn't work? egrep -c '\b\B+\b' file.txt What is the correct way to count all the words in a file? Welcome to the UNIX and Linux Forums. Please use code tags. Video tutorial on how to use them (3 Replies)
Discussion started by: meightr
3 Replies

2. Shell Programming and Scripting

A quick query

Hello All, i am facing an issue and could not understand the possible reason... When the following command is executed from command line (from # prompt) the output is as desired but executing the same from a shell script, the result is an error. It is important for the command to execute in... (7 Replies)
Discussion started by: EmbedUX
7 Replies

3. Solaris

Quick help!

Hi, iam trying to use lofiadm in solaris 5.10 but getting the following error.. bash-3.00# lofiadm -a /asmdisks/_file_disk1 lofiadm: /dev/lofictl: No such file or directory i dont see lofictl file in /dev .. i checked in other similar machines..i found this file..can i export this file from... (2 Replies)
Discussion started by: rags_s11
2 Replies

4. UNIX for Dummies Questions & Answers

Quick question.

I'd like to list all userid's on the system that have a .bashrc file in their home directory with a command like "cat /etc/passwd | grep -f", however I'm not quite familiar with using grep. Any suggestions? (2 Replies)
Discussion started by: raidkridley
2 Replies

5. Shell Programming and Scripting

Quick one

Hallo friends, I have a log file called xxx.log which is generated everymorning. I want to change this file to xxx_.log Please assist, i am using ksh on AIX. Ta, Pax (4 Replies)
Discussion started by: kekanap
4 Replies

6. UNIX for Dummies Questions & Answers

Quick question

Hello all, Quick question from a fairly new to Unix developer. if then completedLogFile=$logfile.$(date +%Y%m%d-%H:%M:%S) mv $logfile $completedLogFile fi I understand that this portion of code is simply copying a tmp logfile to a completed logfile when a condition is true. The... (2 Replies)
Discussion started by: JohnnyBoy
2 Replies

7. UNIX for Dummies Questions & Answers

quick question

from command prompt I did grep two words on a same line for eg: grep abc | grep xyz and I got tht particular line, but I want to know when I vi that file how to directly search for that particular line? I appreciate if any one can provide answer, thanks in advance (2 Replies)
Discussion started by: pkolishetty
2 Replies

8. UNIX for Dummies Questions & Answers

i need quick help???...please

hey guys i'm new in this world " unix " i wanna any websites can help me to learn unix or any websites i can download UNIX from it thanks :D (3 Replies)
Discussion started by: M_Hafez
3 Replies

Featured Tech Videos